on master help sign in
appimagetool: patch all bins, fix w/version 10
commitff4c7ede6109cdc533ad262464deb381e905eaf5 authorWill Dietz <w@wdtz.org> dateMon 26 Feb 2018, 13:14 (9 years ago) parent6993f2a
1 file changed+6−6
appimagetool.nix+6−6
appimagetool.nix+6−6
@@ -34,12 +34,12 @@ in stdenv.mkDerivation rec {
3434 mkdir -p $out
3535 cp -r usr/* $out
3636
37− patchelf --set-interpreter ${dynamicLinker} \
38− --set-rpath ${stdenv.glibc.out}/lib:${fuse}/lib:${zlib}/lib:${glib}/lib \
39− $out/bin/appimagetool
40− patchelf --set-interpreter ${dynamicLinker} \
41− --set-rpath ${zlib}/lib \
42− $out/bin/mksquashfs
37+ for x in $out/bin/*; do
38+ patchelf \
39+ --set-interpreter ${dynamicLinker} \
40+ --set-rpath ${stdenv.lib.makeLibraryPath [ zlib stdenv.glibc.out fuse glib ]} \
41+ $x
42+ done
4343 '';
4444
4545 dontStrip = true;