about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/atdgen
diff options
context:
space:
mode:
authorEric Merritt <eric@afiniate.com>2015-05-25 13:45:10 -0700
committerEric Merritt <eric@afiniate.com>2015-05-25 13:45:10 -0700
commitc651e7ff610b48a1f73a6db6da34e12174722bbd (patch)
treeaaea777bb669f2926330fc1a367a0feea5532afe /pkgs/development/ocaml-modules/atdgen
parent7efe850b1d0a3428f2feb4eb027049651a1de579 (diff)
downloadnixlib-c651e7ff610b48a1f73a6db6da34e12174722bbd.tar
nixlib-c651e7ff610b48a1f73a6db6da34e12174722bbd.tar.gz
nixlib-c651e7ff610b48a1f73a6db6da34e12174722bbd.tar.bz2
nixlib-c651e7ff610b48a1f73a6db6da34e12174722bbd.tar.lz
nixlib-c651e7ff610b48a1f73a6db6da34e12174722bbd.tar.xz
nixlib-c651e7ff610b48a1f73a6db6da34e12174722bbd.tar.zst
nixlib-c651e7ff610b48a1f73a6db6da34e12174722bbd.zip
ocaml-atdgen: add minimal version (1.6.0) to the system
Diffstat (limited to 'pkgs/development/ocaml-modules/atdgen')
-rw-r--r--pkgs/development/ocaml-modules/atdgen/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/atdgen/default.nix b/pkgs/development/ocaml-modules/atdgen/default.nix
new file mode 100644
index 000000000000..bab2541fd744
--- /dev/null
+++ b/pkgs/development/ocaml-modules/atdgen/default.nix
@@ -0,0 +1,25 @@
+{stdenv, atd, yojson, menhir, easy-format, biniou, cppo, buildOcaml, fetchurl, which}:
+
+buildOcaml rec {
+  name = "atdgen";
+  version = "1.6.0";
+
+  src = fetchurl {
+    url = "https://github.com/mjambon/atdgen/archive/v${version}.tar.gz";
+    sha256 = "1icdxgb7qqq1pcbfqi0ikryiwaljd594z3acyci8g3bnlq0yc7zn";
+  };
+
+  installPhase = ''
+    mkdir -p $out/bin
+    make PREFIX=$out install
+  '';
+
+  buildInputs = [ which atd biniou yojson ];
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/mjambon/atdgen;
+    description = "Generates optimized boilerplate OCaml code for JSON and Biniou IO from type definitions";
+    license = licenses.bsd3;
+    maintainers = [ maintainers.jwilberding ];
+  };
+}