about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/hex/default.nix
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-01-23 09:15:08 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-01-23 09:22:14 +0100
commit78f93c3de2549e6d15c40084b4eed3a34c14d467 (patch)
tree01728cb46a56b15031c961e7146330a741edf4bc /pkgs/development/ocaml-modules/hex/default.nix
parent69cda1a7c0fa7e0b11eb3648373389f8e06a68d9 (diff)
Adds ocaml-hex
Mininal OCaml library providing hexadecimal converters.

Homepage: https://github.com/mirage/ocaml-hex
Diffstat (limited to 'pkgs/development/ocaml-modules/hex/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/hex/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/hex/default.nix b/pkgs/development/ocaml-modules/hex/default.nix
new file mode 100644
index 0000000000000..1be3b4cbfb737
--- /dev/null
+++ b/pkgs/development/ocaml-modules/hex/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchzip, ocaml, findlib }:
+
+let version = "0.1.0"; in
+
+stdenv.mkDerivation {
+  name = "ocaml-hex-${version}";
+
+  src = fetchzip {
+    url = "https://github.com/mirage/ocaml-hex/archive/${version}.tar.gz";
+    sha256 = "1nna0v5wi1g8l9ywl43xda2lqbz3sa3ncpyg84bl9baxyfmw4p9n";
+  };
+
+  buildInputs = [ ocaml findlib ];
+  createFindlibDestdir = true;
+
+  meta = {
+    description = "Mininal OCaml library providing hexadecimal converters";
+    homepage = https://github.com/mirage/ocaml-hex;
+    license = stdenv.lib.licenses.isc;
+    maintainers = with stdenv.lib.maintainers; [ vbgl ];
+    platforms = ocaml.meta.platforms;
+  };
+}