on master help sign in
Merge pull request #5 from rbvermaa/master
050e2e8Matthew Justin Bauer
appimagetool.nix+7−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchurl, fuse, zlib }:
2
2
3# This is from some binaries.
3# This is from some binaries.
4
4
@@ -16,8 +16,12 @@ stdenv.mkDerivation rec {
16 sourceRoot = "squashfs-root";
16 sourceRoot = "squashfs-root";
17
17
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
21 '';
25 '';
22
26
23 installPhase = ''
27 installPhase = ''