Skip to content

Commit

Permalink
libappstream-glib: Properly set rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Sep 10, 2017
1 parent 2317a07 commit 6a17c5a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions 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 {
Expand All @@ -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;
Expand Down

2 comments on commit 6a17c5a

@shlevy
Copy link
Member Author

@shlevy shlevy commented on 6a17c5a Sep 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vcunat
Copy link
Member

@vcunat vcunat commented on 6a17c5a Sep 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, efeef04.

Please sign in to comment.