summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-02-23 18:34:17 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-02-23 18:34:17 +0000
commitd6bc0c92363abde154be0e091e54156dca8a69b2 (patch)
treee8ad491ce9b86937ca9b746370ddb134675ea451 /pkgs/development/ocaml-modules
parent63796fd38faf78b749c0dd1321391601d0a2821a (diff)
downloadnixpkgs-d6bc0c92363abde154be0e091e54156dca8a69b2.tar
nixpkgs-d6bc0c92363abde154be0e091e54156dca8a69b2.tar.gz
nixpkgs-d6bc0c92363abde154be0e091e54156dca8a69b2.tar.bz2
nixpkgs-d6bc0c92363abde154be0e091e54156dca8a69b2.tar.lz
nixpkgs-d6bc0c92363abde154be0e091e54156dca8a69b2.tar.xz
nixpkgs-d6bc0c92363abde154be0e091e54156dca8a69b2.tar.zst
nixpkgs-d6bc0c92363abde154be0e091e54156dca8a69b2.zip
ocamlPackages.ppx_optcomp: init at 113.33.0[01]+4.03
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/janestreet/ppx_optcomp-113_33_01.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/janestreet/ppx_optcomp-113_33_01.nix b/pkgs/development/ocaml-modules/janestreet/ppx_optcomp-113_33_01.nix
new file mode 100644
index 00000000000..05e7f40eb68
--- /dev/null
+++ b/pkgs/development/ocaml-modules/janestreet/ppx_optcomp-113_33_01.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, opam, topkg, oasis
+, ppx_core, ppx_tools
+}:
+
+let
+  param = {
+    "4.03" = {
+      version = "113.33.00+4.03";
+      sha256 = "1fkz6n40l4ck8bcr548d2yp08zc9fjv42zldlh0cj3ammhiz3gap";
+    };
+    "4.04" = {
+      version = "113.33.01+4.03";
+      sha256 = "1caw5dfgh5rw8mcgar0hdn485j1rqlnkbfb8wd0wdl5zhkg8jk3d";
+    };
+  }."${ocaml.meta.branch}";
+in
+
+stdenv.mkDerivation {
+  name = "ocaml${ocaml.version}-ppx_optcomp-${param.version}";
+  src = fetchzip {
+    url = "http://github.com/janestreet/ppx_optcomp/archive/${param.version}.tar.gz";
+    inherit (param) sha256;
+  };
+
+  buildInputs = [ ocaml findlib ocamlbuild opam oasis ppx_tools ];
+  propagatedBuildInputs = [ ppx_core ];
+
+  inherit (topkg) installPhase;
+
+  meta = {
+    license = stdenv.lib.licenses.asl20;
+    inherit (ocaml.meta) platforms;
+  };
+}