@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchurl, fuse, zlib }:
3# This is from some binaries.
3# This is from some binaries.
@@ -16,8 +16,12 @@ stdenv.mkDerivation rec {
16 sourceRoot = "squashfs-root";
16 sourceRoot = "squashfs-root";
18 unpackPhase = ''
18 unpackPhase = ''
19− chmod a+x $src
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
20− $src --appimage-extract
24+ ./appimagetool-x86_64.AppImage --appimage-extract
23 installPhase = ''
27 installPhase = ''