summaryrefslogtreecommitdiffstats
path: root/pkgs/development/libraries/appstream-glib
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2017-09-09 17:20:03 -0700
committerShea Levy <shea@shealevy.com>2017-09-09 17:20:03 -0700
commit6a17c5a46c933deb6c856be8602ea9f5d6560e98 (patch)
tree8e5be094042fbee2129630bc734e1b940c71b6b2 /pkgs/development/libraries/appstream-glib
parent2317a07fbb6254e11851f0137d65bc48fab4e6c3 (diff)
libappstream-glib: Properly set rpath
Diffstat (limited to 'pkgs/development/libraries/appstream-glib')
-rw-r--r--pkgs/development/libraries/appstream-glib/default.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/development/libraries/appstream-glib/default.nix b/pkgs/development/libraries/appstream-glib/default.nix
index 8addecfa1b40..0b2f0e03cc19 100644
--- a/pkgs/development/libraries/appstream-glib/default.nix
+++ b/pkgs/development/libraries/appstream-glib/default.nix
@@ -1,10 +1,17 @@
{ stdenv, fetchFromGitHub, pkgconfig, gettext, gtk3, intltool, glib
, gtk_doc, autoconf, automake, libtool, libarchive
, gobjectIntrospection, sqlite, libsoup, gcab, attr, acl, docbook_xsl
-, libuuid, json_glib, autoconf-archive, meson, gperf, ninja
+, libuuid, json_glib, autoconf-archive, meson, gperf, ninja, gdk_pixbuf
}:
-
-stdenv.mkDerivation rec {
+let rpath = stdenv.lib.makeLibraryPath
+ [ libuuid.out
+ glib
+ libsoup
+ gdk_pixbuf
+ libarchive.lib
+ gcab
+ ];
+in stdenv.mkDerivation rec {
name = "appstream-glib-0.7.2";
src = fetchFromGitHub {
@@ -21,6 +28,8 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ gtk3 ];
mesonFlags = [ "-Denable-rpm=false" "-Denable-stemmer=false" "-Denable-dep11=false" ];
+ postFixup = "patchelf --set-rpath ${rpath} $out/lib/libappstream-glib.so";
+
meta = with stdenv.lib; {
description = "Objects and helper methods to read and write AppStream metadata";
homepage = https://github.com/hughsie/appstream-glib;