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