nixpkgs/pkgs/development/libraries/appstream-glib/default.nix

45 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pkgconfig, gettext, gtk3, intltool, glib
2017-09-02 17:00:20 -07:00
, gtk_doc, autoconf, automake, libtool, libarchive
2015-04-10 08:02:57 -07:00
, gobjectIntrospection, sqlite, libsoup, gcab, attr, acl, docbook_xsl
2017-09-09 17:20:03 -07:00
, libuuid, json_glib, autoconf-archive, meson, gperf, ninja, gdk_pixbuf
2015-04-10 08:02:57 -07:00
}:
2017-09-09 17:20:03 -07:00
let rpath = stdenv.lib.makeLibraryPath
[ libuuid.out
glib
libsoup
gdk_pixbuf
libarchive.lib
gcab
];
in stdenv.mkDerivation rec {
2017-09-02 17:00:20 -07:00
name = "appstream-glib-0.7.2";
2015-04-10 08:02:57 -07:00
src = fetchFromGitHub {
owner = "hughsie";
repo = "appstream-glib";
rev = stdenv.lib.replaceStrings ["." "-"] ["_" "_"] name;
2017-09-02 17:00:20 -07:00
sha256 = "1jvwfida12d2snc8p9lpbpqzrixw2naaiwfmsrldwkrxsj3i19pl";
2015-04-10 08:02:57 -07:00
};
2017-09-02 17:00:20 -07:00
nativeBuildInputs = [ meson pkgconfig ninja ];
buildInputs = [ glib gtk_doc gettext sqlite libsoup
gcab attr acl docbook_xsl libuuid json_glib
2017-09-02 17:00:20 -07:00
libarchive gobjectIntrospection gperf ];
2017-02-27 05:29:58 -08:00
propagatedBuildInputs = [ gtk3 ];
2017-09-02 17:00:20 -07:00
mesonFlags = [ "-Denable-rpm=false" "-Denable-stemmer=false" "-Denable-dep11=false" ];
2015-04-10 08:02:57 -07:00
postFixup = ''
for elf in "$out"/bin/* "$out"/lib/*.so; do
patchelf --set-rpath '${rpath}':"$out/lib" "$elf"
done
'';
2017-09-09 17:20:03 -07:00
2015-04-10 08:02:57 -07:00
meta = with stdenv.lib; {
description = "Objects and helper methods to read and write AppStream metadata";
homepage = https://github.com/hughsie/appstream-glib;
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ lethalman matthewbauer ];
2015-04-10 08:02:57 -07:00
};
}