anchor.diff:  { stdenv, fetchFromGitHub
  -, pkgconfig, cmake, autoconf, automake, libtool
  -, wget, xxd, desktop-file-utils
  -, glib, zlib, cairo, openssl, fuse, xz, squashfuse, inotify-tools, libarchive
  +, pkgconfig, cmake, autoconf, automake, libtool, makeWrapper
  +, wget, xxd, desktop-file-utils, file
  +, gnupg, glib, zlib, cairo, openssl, fuse, xz, squashfuse, inotify-tools, libarchive
   , squashfsTools
   , gtest
   }:
  
positive.code:   buildInputs = [
      glib zlib cairo openssl fuse
      xz inotify-tools libarchive
      squashfsTools
    ];
  
    preConfigure = ''
      export HOME=$(pwd)
  
negative.code:     "-DUSE_SYSTEM_MKSQUASHFS=ON"
      "-DBUILD_TESTING=${if doCheck then "ON" else "OFF"}"
    ];
  
    postInstall = ''
      cp "${squashfsTools}/bin/mksquashfs" "$out/lib/appimagekit/"
      cp "${desktop-file-utils}/bin/desktop-file-validate" "$out/bin"
  
      wrapProgram "$out/bin/appimagetool" \
        --prefix PATH : "${stdenv.lib.makeBinPath [ file gnupg ]}"
    '';
  
    checkInputs = [ gtest ];
    doCheck = false; # fails 1 out of 4 tests, I'm too lazy to debug why
  