diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-02-26 13:16:03 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-02-26 17:29:35 +0000 |
commit | 0e6e2af219934432cda971a10a1c5db88c174b68 (patch) | |
tree | 07c50b0aff1d6d559264d0f870ea7de6f756f19e /pkgs | |
parent | 1aab9f884d690744d69746192e5f7f1499296ad6 (diff) | |
download | nixlib-0e6e2af219934432cda971a10a1c5db88c174b68.tar nixlib-0e6e2af219934432cda971a10a1c5db88c174b68.tar.gz nixlib-0e6e2af219934432cda971a10a1c5db88c174b68.tar.bz2 nixlib-0e6e2af219934432cda971a10a1c5db88c174b68.tar.lz nixlib-0e6e2af219934432cda971a10a1c5db88c174b68.tar.xz nixlib-0e6e2af219934432cda971a10a1c5db88c174b68.tar.zst nixlib-0e6e2af219934432cda971a10a1c5db88c174b68.zip |
ocamlPackages.ppx_variants_conv: init at 113.33.00+4.03
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ocaml-modules/janestreet/ppx_variants_conv-113_33_00.nix | 21 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 5 |
2 files changed, 25 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/janestreet/ppx_variants_conv-113_33_00.nix b/pkgs/development/ocaml-modules/janestreet/ppx_variants_conv-113_33_00.nix new file mode 100644 index 000000000000..fb8a994790cb --- /dev/null +++ b/pkgs/development/ocaml-modules/janestreet/ppx_variants_conv-113_33_00.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg +, variantslib, ppx_deriving, ppx_type_conv +}: + +stdenv.mkDerivation { + name = "ocaml${ocaml.version}-ppx_variants_conv-113.33.00+4.03"; + src = fetchurl { + url = http://ocaml.janestreet.com/ocaml-core/113.33/files/ppx_variants_conv-113.33.00+4.03.tar.gz; + sha256 = "0il0nkdwwsc1ymshj4q9nzw5ixm12ls0jj7z3q16k48bg3z5ibc0"; + }; + + buildInputs = [ ocaml findlib ocamlbuild opam ]; + propagatedBuildInputs = [ variantslib ppx_deriving ppx_type_conv ]; + + inherit (topkg) installPhase; + + meta = { + license = stdenv.lib.licenses.asl20; + inherit (ocaml.meta) platforms; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 3bfb194e20a2..d393233181d2 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -622,7 +622,10 @@ let ppx_typerep_conv = callPackage ../development/ocaml-modules/janestreet/ppx-typerep-conv.nix {}; - ppx_variants_conv = callPackage ../development/ocaml-modules/janestreet/ppx-variants-conv.nix {}; + ppx_variants_conv = + if lib.versionOlder "4.03" ocaml.version + then callPackage ../development/ocaml-modules/janestreet/ppx_variants_conv-113_33_00.nix {} + else callPackage ../development/ocaml-modules/janestreet/ppx-variants-conv.nix {}; ppx_expect = callPackage ../development/ocaml-modules/janestreet/ppx-expect.nix {}; |