@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchurl, fuse, zlib }:
22
33# This is from some binaries.
44
@@ -16,8 +16,12 @@ stdenv.mkDerivation rec {
1616 sourceRoot = "squashfs-root";
1717
1818 unpackPhase = ''
19− chmod a+x $src
20− $src --appimage-extract
19+ cp $src appimagetool-x86_64.AppImage
20+ chmod u+wx appimagetool-x86_64.AppImage
21+ patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
22+ --set-rpath ${fuse}/lib:${zlib}/lib \
23+ appimagetool-x86_64.AppImage
24+ ./appimagetool-x86_64.AppImage --appimage-extract
2125 '';
2226
2327 installPhase = ''