nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, gettext
2, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt
3, libstemmer, glib, xapian, libxml2, libyaml, gobject-introspection
4, pcre, itstool, gperf, vala, lmdb, libsoup
5}:
6
7stdenv.mkDerivation rec {
8 pname = "appstream";
9 version = "0.12.11";
10
11 outputs = [ "out" "dev" ];
12
13 src = fetchFromGitHub {
14 owner = "ximion";
15 repo = "appstream";
16 rev = "v${version}";
17 sha256 = "sha256-bCDyMwQdn9Csxs2hy4dm+LjtxK4+YBK6yDkAdhu1QVU=";
18 };
19
20 nativeBuildInputs = [
21 meson ninja pkgconfig gettext
22 libxslt xmlto docbook_xsl docbook_xml_dtd_45
23 gobject-introspection itstool vala
24 ];
25
26 buildInputs = [ libstemmer pcre glib xapian libxml2 libyaml gperf lmdb libsoup ];
27
28 prePatch = ''
29 substituteInPlace meson.build \
30 --replace /usr/include ${libstemmer}/include
31
32 substituteInPlace data/meson.build \
33 --replace /etc $out/etc
34 '';
35
36 mesonFlags = [
37 "-Dapidocs=false"
38 "-Ddocs=false"
39 "-Dvapi=true"
40 ];
41
42 meta = with stdenv.lib; {
43 description = "Software metadata handling library";
44 homepage = "https://www.freedesktop.org/wiki/Distributions/AppStream/";
45 longDescription = ''
46 AppStream is a cross-distro effort for building Software-Center applications
47 and enhancing metadata provided by software components. It provides
48 specifications for meta-information which is shipped by upstream projects and
49 can be consumed by other software.
50 '';
51 license = licenses.lgpl21Plus;
52 platforms = platforms.unix;
53 };
54}