diff options
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/mlgmpidl/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/ppx_import/default.nix | 21 |
2 files changed, 15 insertions, 10 deletions
diff --git a/pkgs/development/ocaml-modules/mlgmpidl/default.nix b/pkgs/development/ocaml-modules/mlgmpidl/default.nix index c82df1396bd4..9c9912cfb8c0 100644 --- a/pkgs/development/ocaml-modules/mlgmpidl/default.nix +++ b/pkgs/development/ocaml-modules/mlgmpidl/default.nix @@ -2,12 +2,12 @@ stdenv.mkDerivation rec { name = "ocaml${ocaml.version}-mlgmpidl-${version}"; - version = "1.2.6"; + version = "1.2.7"; src = fetchFromGitHub { owner = "nberth"; repo = "mlgmpidl"; rev = version; - sha256 = "1lq3yy10v3rvlchbl5kl75l9f8frgj6g9f1n14kj5qlxm5xsrvks"; + sha256 = "063hy1divbiabqm5x307iamw942sivzw9fr8vczy3kgndfp12nic"; }; buildInputs = [ perl gmp mpfr ocaml findlib camlidl ]; diff --git a/pkgs/development/ocaml-modules/ppx_import/default.nix b/pkgs/development/ocaml-modules/ppx_import/default.nix index 1f53b8712828..ffac74de4edf 100644 --- a/pkgs/development/ocaml-modules/ppx_import/default.nix +++ b/pkgs/development/ocaml-modules/ppx_import/default.nix @@ -1,21 +1,24 @@ -{stdenv, fetchFromGitHub, buildOcaml, opaline, - cppo, ounit, ppx_deriving}: +{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, opaline +, cppo, ounit, ppx_deriving +}: -buildOcaml rec { - name = "ppx_import"; +if !stdenv.lib.versionAtLeast ocaml.version "4.02" +then throw "ppx_import is not available for OCaml ${ocaml.version}" +else - version = "1.4"; +stdenv.mkDerivation rec { + name = "ocaml${ocaml.version}-ppx_import-${version}"; - minimumSupportedOcamlVersion = "4.02"; + version = "1.5"; src = fetchFromGitHub { owner = "ocaml-ppx"; repo = "ppx_import"; rev = "v${version}"; - sha256 = "14c2lp7r9080c4hsb1y1drbxxx3v44b7ib5wfh3kkh3f1jfsjwbk"; + sha256 = "1lf5lfp6bl5g4gdszaa6k6pkyh3qyhbarg5m1j0ai3i8zh5qg09d"; }; - buildInputs = [ cppo ounit ppx_deriving opaline ]; + buildInputs = [ ocaml findlib ocamlbuild cppo ounit ppx_deriving opaline ]; doCheck = true; checkTarget = "test"; @@ -25,5 +28,7 @@ buildOcaml rec { meta = with stdenv.lib; { description = "A syntax extension that allows to pull in types or signatures from other compiled interface files"; license = licenses.mit; + inherit (ocaml.meta) platforms; + inherit (src.meta) homepage; }; } |