nixpkgs/pkgs/data/misc/shared-mime-info/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitLab
, meson
, ninja
2021-01-17 03:14:13 +01:00
, pkg-config
, gettext
, itstool
, libxml2
, glib
, shared-mime-info
}:
stdenv.mkDerivation rec {
2022-06-29 16:15:12 +02:00
pname = "shared-mime-info";
version = "2.4";
2021-08-22 22:56:55 +02:00
outputs = [ "out" "dev" ];
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "xdg";
2022-06-29 16:15:12 +02:00
repo = pname;
rev = version;
hash = "sha256-5eyMkfSBUOD7p8woIYTgz5C/L8uQMXyr0fhL0l23VMA=";
};
nativeBuildInputs = [
meson
ninja
2021-01-17 03:14:13 +01:00
pkg-config
gettext
libxml2
2021-07-04 03:50:36 +02:00
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) shared-mime-info;
buildInputs = [
libxml2
glib
];
2021-07-04 03:50:36 +02:00
strictDeps = true;
mesonFlags = [
"-Dupdate-mimedb=true"
];
meta = with lib; {
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;
maintainers = teams.freedesktop.members ++ [ maintainers.mimame ];
mainProgram = "update-mime-database";
};
}