about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/atdgen
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2018-12-10 20:14:42 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2018-12-17 21:38:49 +0000
commit6620de7594cf2b4dd89c1b15c49495a52140d785 (patch)
tree1e95225472e766412c3a3e90bfae3b1ef4c2d720 /pkgs/development/ocaml-modules/atdgen
parent6a80140fdf2157d1a5500a04c87033c0dcd6bf9b (diff)
downloadnixlib-6620de7594cf2b4dd89c1b15c49495a52140d785.tar
nixlib-6620de7594cf2b4dd89c1b15c49495a52140d785.tar.gz
nixlib-6620de7594cf2b4dd89c1b15c49495a52140d785.tar.bz2
nixlib-6620de7594cf2b4dd89c1b15c49495a52140d785.tar.lz
nixlib-6620de7594cf2b4dd89c1b15c49495a52140d785.tar.xz
nixlib-6620de7594cf2b4dd89c1b15c49495a52140d785.tar.zst
nixlib-6620de7594cf2b4dd89c1b15c49495a52140d785.zip
ocamlPackages.atdgen: init at 2.0.0
Atdgen is a command-line program that takes as input type definitions in the
ATD syntax and produces OCaml code suitable for data serialization and
deserialization.

Homepage: https://github.com/mjambon/atd
Diffstat (limited to 'pkgs/development/ocaml-modules/atdgen')
-rw-r--r--pkgs/development/ocaml-modules/atdgen/default.nix26
1 files changed, 26 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..d8ef2fec9990
--- /dev/null
+++ b/pkgs/development/ocaml-modules/atdgen/default.nix
@@ -0,0 +1,26 @@
+{ buildDunePackage, atd, biniou, yojson }:
+
+let runtime =
+  buildDunePackage {
+    pname = "atdgen-runtime";
+    inherit (atd) version src;
+
+    propagatedBuildInputs = [ biniou yojson ];
+
+    meta = { inherit (atd.meta) license; };
+  }
+; in
+
+buildDunePackage {
+  pname = "atdgen";
+  inherit (atd) version src;
+
+  buildInputs = [ atd ];
+
+  propagatedBuildInputs = [ runtime ];
+
+  meta = {
+    description = "Generates efficient JSON serializers, deserializers and validators";
+    inherit (atd.meta) license;
+  };
+}