libappstream-glib: Properly set rpath

+12 -3
+12 -3
pkgs/development/libraries/appstream-glib/default.nix
··· 1 1 { stdenv, fetchFromGitHub, pkgconfig, gettext, gtk3, intltool, glib 2 2 , gtk_doc, autoconf, automake, libtool, libarchive 3 3 , gobjectIntrospection, sqlite, libsoup, gcab, attr, acl, docbook_xsl 4 - , libuuid, json_glib, autoconf-archive, meson, gperf, ninja 4 + , libuuid, json_glib, autoconf-archive, meson, gperf, ninja, gdk_pixbuf 5 5 }: 6 - 7 - stdenv.mkDerivation rec { 6 + let rpath = stdenv.lib.makeLibraryPath 7 + [ libuuid.out 8 + glib 9 + libsoup 10 + gdk_pixbuf 11 + libarchive.lib 12 + gcab 13 + ]; 14 + in stdenv.mkDerivation rec { 8 15 name = "appstream-glib-0.7.2"; 9 16 10 17 src = fetchFromGitHub { ··· 20 27 libarchive gobjectIntrospection gperf ]; 21 28 propagatedBuildInputs = [ gtk3 ]; 22 29 mesonFlags = [ "-Denable-rpm=false" "-Denable-stemmer=false" "-Denable-dep11=false" ]; 30 + 31 + postFixup = "patchelf --set-rpath ${rpath} $out/lib/libappstream-glib.so"; 23 32 24 33 meta = with stdenv.lib; { 25 34 description = "Objects and helper methods to read and write AppStream metadata";