2018-10-12 22:56:15 +00:00
|
|
|
{stdenv, fetchurl, pkgconfig, gettext, perlPackages, intltool
|
2009-03-23 20:31:12 +00:00
|
|
|
, libxml2, glib}:
|
2009-02-16 14:57:35 +00:00
|
|
|
|
2019-03-07 23:36:19 +00:00
|
|
|
let version = "1.12"; in
|
2009-02-16 14:57:35 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-10-01 17:55:28 +00:00
|
|
|
name = "shared-mime-info-${version}";
|
2009-02-16 14:57:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-07 23:36:19 +00:00
|
|
|
url = "https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/80c7f1afbcad2769f38aeb9ba6317a51/shared-mime-info-1.12.tar.xz";
|
|
|
|
sha256 = "0gj0pp36qpsr9w6v4nywnjpcisadwkndapqsjn0ny3gd0zzg1chq";
|
2009-02-16 14:57:35 +00:00
|
|
|
};
|
|
|
|
|
2018-10-14 21:57:01 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig gettext intltool ] ++ (with perlPackages; [ perl XMLParser ]);
|
|
|
|
buildInputs = [ libxml2 glib ];
|
2009-02-16 14:57:35 +00:00
|
|
|
|
2017-09-30 17:59:38 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-10-01 17:55:28 +00:00
|
|
|
inherit version;
|
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 17:59:38 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.mimadrid ];
|
2009-02-16 14:57:35 +00:00
|
|
|
};
|
|
|
|
}
|