summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/magic-mime/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/magic-mime/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/magic-mime/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/magic-mime/default.nix b/pkgs/development/ocaml-modules/magic-mime/default.nix
new file mode 100644
index 00000000000..d77c3f68115
--- /dev/null
+++ b/pkgs/development/ocaml-modules/magic-mime/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchzip, ocaml, findlib }:
+
+let version = "1.0.0"; in
+
+stdenv.mkDerivation {
+  name = "ocaml-magic-mime-${version}";
+
+  src = fetchzip {
+    url = "https://github.com/mirage/ocaml-magic-mime/archive/v${version}.tar.gz";
+    sha256 = "058d83hmxd5mjccxdm3ydchmhk2lca5jdg82jg0klsigmf4ida6v";
+  };
+
+  buildInputs = [ ocaml findlib ];
+
+  createFindlibDestdir = true;
+
+  meta = {
+    homepage = https://github.com/mirage/ocaml-magic-mime;
+    description = "Convert file extensions to MIME types";
+    platforms = ocaml.meta.platforms;
+    license = stdenv.lib.licenses.isc;
+    maintainers = with stdenv.lib.maintainers; [ vbgl ];
+  };
+}