linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / appstream / default.nix
blob6fa4a6e0a4ab66b698b49826ec564f0d00ee5991
1 { lib, stdenv, substituteAll, fetchFromGitHub, meson, ninja, pkg-config, 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 }:
7 stdenv.mkDerivation rec {
8   pname = "appstream";
9   version = "0.14.0";
11   outputs = [ "out" "dev" ];
13   src = fetchFromGitHub {
14     owner  = "ximion";
15     repo   = "appstream";
16     rev    = "v${version}";
17     sha256 = "sha256-iYqmQ1/58t3ZdJTxYLDc5jkTG1lMBtQWMFFsYsszH9Q=";
18   };
20   patches = [
21     # Fix hardcoded paths
22     (substituteAll {
23       src = ./fix-paths.patch;
24       libstemmer_includedir = "${lib.getDev libstemmer}/include";
25     })
26   ];
28   nativeBuildInputs = [
29     meson ninja pkg-config gettext
30     libxslt xmlto docbook_xsl docbook_xml_dtd_45
31     gobject-introspection itstool vala
32   ];
34   buildInputs = [ libstemmer pcre glib xapian libxml2 libyaml gperf lmdb libsoup ];
36   mesonFlags = [
37     "-Dapidocs=false"
38     "-Ddocs=false"
39     "-Dvapi=true"
40   ];
42   meta = with 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  };