git.iko.soy/typeable/nixpkgs
on master help sign in
appstream-glib: more RPATH fixes #29326

Fix in 6a17c5a46c93 wasn't enough.

commitefeef044bef9cdcb7ee8431a8c174a7a20be93c7 authorVladimír Čunát <vcunat@gmail.com> dateWed 13 Sep 2017, 22:41 (9 years ago) parent349a092
1 file changed+5−1
pkgs/development/libraries/appstream-glib/default.nix+5−1
pkgs/development/libraries/appstream-glib/default.nix+5−1
@@ -28,7 +28,11 @@ in stdenv.mkDerivation rec {
2828 propagatedBuildInputs = [ gtk3 ];
2929 mesonFlags = [ "-Denable-rpm=false" "-Denable-stemmer=false" "-Denable-dep11=false" ];
3030
31− postFixup = "patchelf --set-rpath ${rpath} $out/lib/libappstream-glib.so";
31+ postFixup = ''
32+ for elf in "$out"/bin/* "$out"/lib/*.so; do
33+ patchelf --set-rpath '${rpath}':"$out/lib" "$elf"
34+ done
35+ '';
3236
3337 meta = with stdenv.lib; {
3438 description = "Objects and helper methods to read and write AppStream metadata";