2019-09-13 19:26:00 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkgconfig
|
|
|
|
, gettext
|
|
|
|
, perlPackages
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, glib
|
|
|
|
}:
|
2009-02-16 14:57:35 +00:00
|
|
|
|
2019-09-13 19:26:00 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "shared-mime-info";
|
2019-09-13 19:26:00 +01:00
|
|
|
version = "1.13.1";
|
2009-02-16 14:57:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-09-13 19:26:00 +01:00
|
|
|
url = "https://gitlab.freedesktop.org/xdg/${pname}/uploads/5349e18c86eb96eee258a5c1f19122d0/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "1bic8z5nz08qxv1x6zlxnx2j4cmlzm12kygrn3rrh1djqxdhma3f";
|
2009-02-16 14:57:35 +00:00
|
|
|
};
|
|
|
|
|
2019-09-13 19:26:00 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
] ++ (with perlPackages; [
|
|
|
|
perl XMLParser
|
|
|
|
]);
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxml2
|
|
|
|
glib
|
|
|
|
];
|
2009-02-16 14:57:35 +00:00
|
|
|
|
2017-09-30 18:59:38 +01:00
|
|
|
meta = with stdenv.lib; {
|
2009-02-16 14:57:35 +00:00
|
|
|
description = "A database of common MIME types";
|
|
|
|
homepage = http://freedesktop.org/wiki/Software/shared-mime-info;
|
2017-09-30 18:59:38 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2019-09-14 11:15:46 +01:00
|
|
|
maintainers = [ maintainers.mimame ];
|
2009-02-16 14:57:35 +00:00
|
|
|
};
|
|
|
|
}
|