2021-06-28 23:13:55 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, fetchpatch
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, glib
|
2021-07-03 03:11:41 +00:00
|
|
|
, shared-mime-info
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-01-26 04:04:25 +00:00
|
|
|
pname = "shared-mime-info-unstable";
|
|
|
|
version = "2021-12-03";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "xdg";
|
2022-01-26 04:04:25 +00:00
|
|
|
repo = "shared-mime-info";
|
|
|
|
rev = "5a406b06792e26a83c7346b3c2443c0bd8d4cdb2";
|
|
|
|
sha256 = "1v7dx7mr0m4lcff1aasg9gxn280zn0ffn6fjg9xc44pnllg01n6s";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
2021-07-03 03:11:41 +00:00
|
|
|
libxml2
|
2021-07-21 07:28:18 +00:00
|
|
|
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) shared-mime-info;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxml2
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dupdate-mimedb=true"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A database of common MIME types";
|
|
|
|
homepage = "http://freedesktop.org/wiki/Software/shared-mime-info";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = teams.freedesktop.members ++ [ maintainers.mimame ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|