Skip to content

Commit 6a17c5a

Browse files
committedSep 10, 2017
libappstream-glib: Properly set rpath
1 parent 2317a07 commit 6a17c5a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed
 

Diff for: ‎pkgs/development/libraries/appstream-glib/default.nix

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
{ stdenv, fetchFromGitHub, pkgconfig, gettext, gtk3, intltool, glib
22
, gtk_doc, autoconf, automake, libtool, libarchive
33
, 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
55
}:
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 {
815
name = "appstream-glib-0.7.2";
916

1017
src = fetchFromGitHub {
@@ -21,6 +28,8 @@ stdenv.mkDerivation rec {
2128
propagatedBuildInputs = [ gtk3 ];
2229
mesonFlags = [ "-Denable-rpm=false" "-Denable-stemmer=false" "-Denable-dep11=false" ];
2330

31+
postFixup = "patchelf --set-rpath ${rpath} $out/lib/libappstream-glib.so";
32+
2433
meta = with stdenv.lib; {
2534
description = "Objects and helper methods to read and write AppStream metadata";
2635
homepage = https://github.com/hughsie/appstream-glib;

2 commit comments

Comments
 (2)

shlevy commented on Sep 10, 2017

@shlevy
MemberAuthor

vcunat commented on Sep 13, 2017

@vcunat
Member

Well, efeef04.

Please sign in to comment.