about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ocplib-json-typed
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-06-30 19:51:28 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-06-30 20:00:21 +0000
commitf6e1d929a0a917e02428a921784315563a94b2a3 (patch)
treee19d34d6c046c4e34164ecefc2d401d02feec50c /pkgs/development/ocaml-modules/ocplib-json-typed
parent74b3a8f5ae01ae83c384b71cd39384e82a51da61 (diff)
downloadnixlib-f6e1d929a0a917e02428a921784315563a94b2a3.tar
nixlib-f6e1d929a0a917e02428a921784315563a94b2a3.tar.gz
nixlib-f6e1d929a0a917e02428a921784315563a94b2a3.tar.bz2
nixlib-f6e1d929a0a917e02428a921784315563a94b2a3.tar.lz
nixlib-f6e1d929a0a917e02428a921784315563a94b2a3.tar.xz
nixlib-f6e1d929a0a917e02428a921784315563a94b2a3.tar.zst
nixlib-f6e1d929a0a917e02428a921784315563a94b2a3.zip
ocamlPackages.ocplib-json-typed: init at 0.5
Diffstat (limited to 'pkgs/development/ocaml-modules/ocplib-json-typed')
-rw-r--r--pkgs/development/ocaml-modules/ocplib-json-typed/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ocplib-json-typed/default.nix b/pkgs/development/ocaml-modules/ocplib-json-typed/default.nix
new file mode 100644
index 000000000000..cadb65bcbed9
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ocplib-json-typed/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, fetchFromGitHub, ocaml, findlib, ocplib-endian, js_of_ocaml, uri }:
+
+stdenv.mkDerivation rec {
+	name = "ocaml${ocaml.version}-ocplib-json-typed-${version}";
+	version = "0.5";
+	src = fetchFromGitHub {
+		owner = "OCamlPro";
+		repo = "ocplib-json-typed";
+		rev = "v${version}";
+		sha256 = "02c600wm2wdpzb66pivxzwjhqa2dm7dqyfvw3mbvkv1g2jj7kn2q";
+	};
+
+	buildInputs = [ ocaml findlib ocplib-endian js_of_ocaml ];
+	propagatedBuildInputs = [ uri ];
+
+	createFindlibDestdir = true;
+
+	meta = {
+		description = "A collection of type-aware JSON utilities for OCaml";
+		license = stdenv.lib.licenses.lgpl21;
+		maintainers = [ stdenv.lib.maintainers.vbgl ];
+		inherit (src.meta) homepage;
+		inherit (ocaml.meta) platforms;
+	};
+}