2017-03-11 00:49:01 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, gettext, intltool
|
2015-01-22 07:02:54 +00:00
|
|
|
, xmlto, docbook_xsl, docbook_xml_dtd_45
|
|
|
|
, glib, xapian, libxml2, libyaml, gobjectIntrospection
|
2017-03-11 00:49:01 +00:00
|
|
|
, pcre, itstool
|
2015-01-22 07:02:54 +00:00
|
|
|
}:
|
|
|
|
|
2017-03-11 00:49:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "appstream-${version}";
|
|
|
|
version = "0.10.6";
|
2016-05-06 18:03:44 +01:00
|
|
|
|
2017-03-11 00:49:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ximion";
|
|
|
|
repo = "appstream";
|
|
|
|
rev = "APPSTREAM_0_10_6";
|
|
|
|
sha256 = "1fg7zxx2qhkyj7fmcpwbf80b72d16kyi8dadi111kf00sgzfbiyy";
|
2016-05-06 18:03:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake pkgconfig gettext intltool
|
|
|
|
xmlto docbook_xsl docbook_xml_dtd_45
|
2017-03-11 00:49:01 +00:00
|
|
|
gobjectIntrospection itstool
|
2016-05-06 18:03:44 +01:00
|
|
|
];
|
|
|
|
|
2017-03-11 00:49:01 +00:00
|
|
|
buildInputs = [ pcre glib xapian libxml2 libyaml ];
|
2015-01-22 07:02:54 +00:00
|
|
|
|
2017-03-11 00:49:01 +00:00
|
|
|
cmakeFlags = ''
|
|
|
|
-DSTEMMING=off
|
|
|
|
'';
|
|
|
|
|
2015-01-22 07:02:54 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Software metadata handling library";
|
|
|
|
homepage = "http://www.freedesktop.org/wiki/Distributions/AppStream/Software/";
|
|
|
|
longDescription =
|
|
|
|
''
|
|
|
|
AppStream is a cross-distro effort for building Software-Center applications
|
|
|
|
and enhancing metadata provided by software components. It provides
|
|
|
|
specifications for meta-information which is shipped by upstream projects and
|
|
|
|
can be consumed by other software.
|
|
|
|
'';
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|