about summary refs log tree commit diff
path: root/pkgs/data/misc
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-11-19 20:28:49 +0800
committerPeter Hoeg <peter@hoeg.com>2017-11-19 20:29:13 +0800
commit1b594f05a2b0f5ce3f1ea947bcfcf6ad4d5d4dcc (patch)
tree3254922d8e321202b00451c7fcac5289e36c9d51 /pkgs/data/misc
parent5147d8bbee59f644613ee1728c5c31854a14e59b (diff)
downloadnixlib-1b594f05a2b0f5ce3f1ea947bcfcf6ad4d5d4dcc.tar
nixlib-1b594f05a2b0f5ce3f1ea947bcfcf6ad4d5d4dcc.tar.gz
nixlib-1b594f05a2b0f5ce3f1ea947bcfcf6ad4d5d4dcc.tar.bz2
nixlib-1b594f05a2b0f5ce3f1ea947bcfcf6ad4d5d4dcc.tar.lz
nixlib-1b594f05a2b0f5ce3f1ea947bcfcf6ad4d5d4dcc.tar.xz
nixlib-1b594f05a2b0f5ce3f1ea947bcfcf6ad4d5d4dcc.tar.zst
nixlib-1b594f05a2b0f5ce3f1ea947bcfcf6ad4d5d4dcc.zip
mime-types: init at 9
Diffstat (limited to 'pkgs/data/misc')
-rw-r--r--pkgs/data/misc/mime-types/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/data/misc/mime-types/default.nix b/pkgs/data/misc/mime-types/default.nix
new file mode 100644
index 000000000000..bce1c5d81d89
--- /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;
+  };
+}