From 1b594f05a2b0f5ce3f1ea947bcfcf6ad4d5d4dcc Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Sun, 19 Nov 2017 20:28:49 +0800 Subject: [PATCH] mime-types: init at 9 --- pkgs/data/misc/mime-types/default.nix | 27 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/data/misc/mime-types/default.nix diff --git a/pkgs/data/misc/mime-types/default.nix b/pkgs/data/misc/mime-types/default.nix new file mode 100644 index 00000000000..bce1c5d81d8 --- /dev/null +++ b/pkgs/data/misc/mime-types/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "mime-types-${version}"; + version = "9"; + + src = fetchurl { + url = "https://mirrors.kernel.org/gentoo/distfiles/${name}.tar.bz2"; + sha256 = "0pib8v0f5xwwm3xj2ygdi2dlxxvbq6p95l3fah5f66qj9xrqlqxl"; + }; + + dontBuild = true; + + installPhase = '' + runHook preInstall + install -Dm644 -t $out/etc mime.types + runHook postInstall + ''; + + meta = with stdenv.lib; { + description = "A database of common mappings of file extensions to MIME types"; + homepage = https://packages.gentoo.org/packages/app-misc/mime-types; + license = licenses.gpl2; + maintainers = with maintainers; [ peterhoeg ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 13df874194e..64c99d79274 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13539,6 +13539,8 @@ with pkgs; shaderc = callPackage ../development/compilers/shaderc { }; + mime_types = callPackage ../data/misc/mime-types { }; + shared_mime_info = callPackage ../data/misc/shared-mime-info { }; shared_desktop_ontologies = callPackage ../data/misc/shared-desktop-ontologies { };