2021-06-06 17:42:02 +02:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, fetchpatch
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 03:14:13 +01:00
|
|
|
, pkg-config
|
2019-09-13 20:26:00 +02:00
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, glib
|
2021-06-30 03:53:39 +02:00
|
|
|
, shared-mime-info
|
2019-09-13 20:26:00 +02:00
|
|
|
}:
|
2009-02-16 15:57:35 +01:00
|
|
|
|
2019-09-13 20:26:00 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2021-12-03 16:47:22 +01:00
|
|
|
pname = "shared-mime-info-unstable";
|
|
|
|
version = "2021-12-03";
|
2009-02-16 15:57:35 +01:00
|
|
|
|
2021-08-22 22:56:55 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-06-06 17:42:02 +02:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "xdg";
|
2021-12-03 16:47:22 +01:00
|
|
|
repo = "shared-mime-info";
|
|
|
|
rev = "5a406b06792e26a83c7346b3c2443c0bd8d4cdb2";
|
|
|
|
sha256 = "1v7dx7mr0m4lcff1aasg9gxn280zn0ffn6fjg9xc44pnllg01n6s";
|
2009-02-16 15:57:35 +01:00
|
|
|
};
|
|
|
|
|
2019-09-13 20:26:00 +02:00
|
|
|
nativeBuildInputs = [
|
2021-06-06 17:42:02 +02:00
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 03:14:13 +01:00
|
|
|
pkg-config
|
2019-09-13 20:26:00 +02:00
|
|
|
gettext
|
2021-06-30 03:53:39 +02:00
|
|
|
libxml2
|
2021-07-04 03:50:36 +02:00
|
|
|
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) shared-mime-info;
|
2019-09-13 20:26:00 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libxml2
|
|
|
|
glib
|
|
|
|
];
|
2009-02-16 15:57:35 +01:00
|
|
|
|
2021-07-04 03:50:36 +02:00
|
|
|
strictDeps = true;
|
|
|
|
|
2021-06-06 17:42:02 +02:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dupdate-mimedb=true"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2009-02-16 15:57:35 +01:00
|
|
|
description = "A database of common MIME types";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://freedesktop.org/wiki/Software/shared-mime-info";
|
2017-09-30 19:59:38 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2021-06-06 17:42:02 +02:00
|
|
|
maintainers = teams.freedesktop.members ++ [ maintainers.mimame ];
|
2022-04-01 21:34:55 +02:00
|
|
|
mainProgram = "update-mime-database";
|
2009-02-16 15:57:35 +01:00
|
|
|
};
|
|
|
|
}
|