tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
appstream: 0.10.6 -> 0.11.8
Peter Hoeg
8 years ago
57ce02b5
8b1cf100
+34
-16
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
appstream
default.nix
+34
-16
pkgs/development/libraries/appstream/default.nix
···
1
-
{ stdenv, fetchFromGitHub, cmake, pkgconfig, gettext, intltool
2
-
, xmlto, docbook_xsl, docbook_xml_dtd_45
3
-
, glib, xapian, libxml2, libyaml, gobjectIntrospection
4
, pcre, itstool
5
}:
6
7
stdenv.mkDerivation rec {
8
name = "appstream-${version}";
9
-
version = "0.10.6";
10
11
src = fetchFromGitHub {
12
-
owner = "ximion";
13
-
repo = "appstream";
14
-
rev = "APPSTREAM_0_10_6";
15
-
sha256 = "1fg7zxx2qhkyj7fmcpwbf80b72d16kyi8dadi111kf00sgzfbiyy";
16
};
0
0
0
0
0
0
0
0
0
17
18
nativeBuildInputs = [
19
-
cmake pkgconfig gettext intltool
20
-
xmlto docbook_xsl docbook_xml_dtd_45
21
gobjectIntrospection itstool
22
];
23
24
-
buildInputs = [ pcre glib xapian libxml2 libyaml ];
0
0
0
0
0
0
0
0
25
26
-
cmakeFlags = ''
27
-
-DSTEMMING=off
28
-
'';
0
0
29
30
meta = with stdenv.lib; {
31
description = "Software metadata handling library";
32
homepage = https://www.freedesktop.org/wiki/Distributions/AppStream/;
33
-
longDescription =
34
-
''
35
AppStream is a cross-distro effort for building Software-Center applications
36
and enhancing metadata provided by software components. It provides
37
specifications for meta-information which is shipped by upstream projects and
···
1
+
{ stdenv, fetchpatch, fetchFromGitHub, meson, ninja, pkgconfig, gettext
2
+
, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt
3
+
, libstemmer, glib, xapian, libxml2, libyaml, gobjectIntrospection
4
, pcre, itstool
5
}:
6
7
stdenv.mkDerivation rec {
8
name = "appstream-${version}";
9
+
version = "0.11.8";
10
11
src = fetchFromGitHub {
12
+
owner = "ximion";
13
+
repo = "appstream";
14
+
rev = "APPSTREAM_${stdenv.lib.replaceStrings ["."] ["_"] version}";
15
+
sha256 = "07vzz57g1p5byj2jfg17y5n3il0g07d9wkiynzwra71mcxar1p08";
16
};
17
+
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
27
nativeBuildInputs = [
28
+
meson ninja pkgconfig gettext
29
+
libxslt xmlto docbook_xsl docbook_xml_dtd_45
30
gobjectIntrospection itstool
31
];
32
33
+
buildInputs = [ libstemmer pcre glib xapian libxml2 libyaml ];
34
+
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
+
];
48
49
meta = with stdenv.lib; {
50
description = "Software metadata handling library";
51
homepage = https://www.freedesktop.org/wiki/Distributions/AppStream/;
52
+
longDescription = ''
0
53
AppStream is a cross-distro effort for building Software-Center applications
54
and enhancing metadata provided by software components. It provides
55
specifications for meta-information which is shipped by upstream projects and