Merge pull request #5 from rbvermaa/master

Fix building appimagetool with build chroots enabled.
This commit is contained in:
Matthew Justin Bauer 2017-02-08 17:34:03 -06:00 committed by GitHub
commit 050e2e8e1b

View File

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