Skip to content

Commit ff4c7ed

Browse files
committed
appimagetool: patch all bins, fix w/version 10
1 parent 6993f2a commit ff4c7ed

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

appimagetool.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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;

0 commit comments

Comments
 (0)