summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ppx_deriving
diff options
context:
space:
mode:
authorMatthew Maurer <matthew.r.maurer@gmail.com>2016-09-13 17:50:18 -0400
committerMatthew Maurer <matthew.r.maurer@gmail.com>2016-09-14 02:34:33 -0400
commit146609fe5909c2f3e25c9fd0c39459bc97130b7f (patch)
tree9f8b4574e44e932421b0fa7c98f6f02cb6cf3dd8 /pkgs/development/ocaml-modules/ppx_deriving
parenta65e53d768814e18f9c70146347ed22407e02ee4 (diff)
downloadnixpkgs-146609fe5909c2f3e25c9fd0c39459bc97130b7f.tar
nixpkgs-146609fe5909c2f3e25c9fd0c39459bc97130b7f.tar.gz
nixpkgs-146609fe5909c2f3e25c9fd0c39459bc97130b7f.tar.bz2
nixpkgs-146609fe5909c2f3e25c9fd0c39459bc97130b7f.tar.lz
nixpkgs-146609fe5909c2f3e25c9fd0c39459bc97130b7f.tar.xz
nixpkgs-146609fe5909c2f3e25c9fd0c39459bc97130b7f.tar.zst
nixpkgs-146609fe5909c2f3e25c9fd0c39459bc97130b7f.zip
ppx_deriving: init at v3.3
Diffstat (limited to 'pkgs/development/ocaml-modules/ppx_deriving')
-rw-r--r--pkgs/development/ocaml-modules/ppx_deriving/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ppx_deriving/default.nix b/pkgs/development/ocaml-modules/ppx_deriving/default.nix
new file mode 100644
index 00000000000..4b4056a69d7
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ppx_deriving/default.nix
@@ -0,0 +1,28 @@
+{stdenv, buildOcaml, fetchurl,
+ cppo, ppx_tools, result, ounit}:
+
+buildOcaml rec {
+  name = "ppx_deriving";
+  version = "v3.3";
+
+  minimumSupportedOcamlVersion = "4.02";
+
+  src = fetchurl {
+    url = "https://github.com/whitequark/${name}/archive/${version}.tar.gz";
+    sha256 = "1j20c6r2v7h05a4v9m8z5m1yqgwif41yrp63mik14pf3dkrj8x3f";
+  };
+
+  hasSharedObjects = true;
+
+  buildInputs = [ cppo ounit ];
+  propagatedBuildInputs =
+    [ ppx_tools result ];
+
+  installPhase = "OCAMLPATH=$OCAMLPATH:`ocamlfind printconf destdir` make install";
+
+  meta = with stdenv.lib; {
+    description = "deriving is a library simplifying type-driven code generation on OCaml >=4.02.";
+    maintainers = [ maintainers.maurer ];
+    license = licenses.mit;
+  };
+}