anchor.diff:    buildInputs = [
       glib zlib cairo openssl fuse
       xz inotify-tools libarchive
  -    squashfsTools
  +    squashfsTools makeWrapper
     ];
  +
  +  postPatch = ''
  +    substituteInPlace src/appimagetool.c --replace "/usr/bin/file" "${file}/bin/file"
  +  '';
   
     preConfigure = ''
       export HOME=$(pwd)
  
positive.code:     "-DUSE_SYSTEM_MKSQUASHFS=ON"
      "-DBUILD_TESTING=${if doCheck then "ON" else "OFF"}"
    ];
  
    checkInputs = [ gtest ];
    doCheck = false; # fails 1 out of 4 tests, I'm too lazy to debug why
  
negative.code: { stdenv, fetchFromGitHub
  , 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
  }:
  