git.iko.soy/typeable/nixpkgs
on master help sign in
appstream: 0.10.6 -> 0.11.8
commit57ce02b574aa5aa5d9da343df6f957dd54bf8fb7 authorPeter Hoeg <peter@hoeg.com> dateThu 22 Feb 2018, 10:58 (9 years ago) parent8b1cf10
1 file changed+34−16
pkgs/development/libraries/appstream/default.nix+34−16
pkgs/development/libraries/appstream/default.nix+34−16
@@ -1,37 +1,55 @@
1−{ stdenv, fetchFromGitHub, cmake, pkgconfig, gettext, intltool
2−, xmlto, docbook_xsl, docbook_xml_dtd_45
3−, glib, xapian, libxml2, libyaml, gobjectIntrospection
1+{ stdenv, fetchpatch, fetchFromGitHub, meson, ninja, pkgconfig, gettext
2+, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt
3+, libstemmer, glib, xapian, libxml2, libyaml, gobjectIntrospection
44, pcre, itstool
55}:
66
77stdenv.mkDerivation rec {
88 name = "appstream-${version}";
9− version = "0.10.6";
9+ version = "0.11.8";
1010
1111 src = fetchFromGitHub {
12− owner = "ximion";
13− repo = "appstream";
14− rev = "APPSTREAM_0_10_6";
15− sha256 = "1fg7zxx2qhkyj7fmcpwbf80b72d16kyi8dadi111kf00sgzfbiyy";
12+ owner = "ximion";
13+ repo = "appstream";
14+ rev = "APPSTREAM_${stdenv.lib.replaceStrings ["."] ["_"] version}";
15+ sha256 = "07vzz57g1p5byj2jfg17y5n3il0g07d9wkiynzwra71mcxar1p08";
1616 };
1717
18+ patches = [
19+ # drop this in version 0.11.9 and above
20+ (fetchpatch {
21+ name = "define-location-and-soname.patch";
22+ url = "https://github.com/ximion/appstream/commit/3e58f9c9.patch";
23+ sha256 = "1ffgbdfg80yq5vahjrvdd4f8xsp32ksm9vyasfmc7hzhx294s78w";
24+ })
25+ ];
26+
1827 nativeBuildInputs = [
19− cmake pkgconfig gettext intltool
20− xmlto docbook_xsl docbook_xml_dtd_45
28+ meson ninja pkgconfig gettext
29+ libxslt xmlto docbook_xsl docbook_xml_dtd_45
2130 gobjectIntrospection itstool
2231 ];
2332
24− buildInputs = [ pcre glib xapian libxml2 libyaml ];
33+ buildInputs = [ libstemmer pcre glib xapian libxml2 libyaml ];
2534
26− cmakeFlags = ''
27− -DSTEMMING=off
28− '';
35+ prePatch = ''
36+ substituteInPlace meson.build \
37+ --replace /usr/include ${libstemmer}/include
38+
39+ substituteInPlace data/meson.build \
40+ --replace /etc $out/etc
41+ '';
42+
43+ mesonFlags = [
44+ "-Dapidocs=false"
45+ "-Ddocs=false"
46+ "-Dgir=false"
47+ ];
2948
3049 meta = with stdenv.lib; {
3150 description = "Software metadata handling library";
3251 homepage = https://www.freedesktop.org/wiki/Distributions/AppStream/;
33− longDescription =
34− ''
52+ longDescription = ''
3553 AppStream is a cross-distro effort for building Software-Center applications
3654 and enhancing metadata provided by software components. It provides
3755 specifications for meta-information which is shipped by upstream projects and