diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-04-13 19:26:05 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-04-14 13:59:55 +0000 |
commit | 31fef05c7ca0f7e55773b75a1db71c8fc2fe07c0 (patch) | |
tree | dbf4f579fb0db3e72ea2f350201520d6d8e541ef /pkgs/development/ocaml-modules | |
parent | 46403f57b032d657afe48dcdccc2eec23bdd8b9a (diff) | |
download | nixlib-31fef05c7ca0f7e55773b75a1db71c8fc2fe07c0.tar nixlib-31fef05c7ca0f7e55773b75a1db71c8fc2fe07c0.tar.gz nixlib-31fef05c7ca0f7e55773b75a1db71c8fc2fe07c0.tar.bz2 nixlib-31fef05c7ca0f7e55773b75a1db71c8fc2fe07c0.tar.lz nixlib-31fef05c7ca0f7e55773b75a1db71c8fc2fe07c0.tar.xz nixlib-31fef05c7ca0f7e55773b75a1db71c8fc2fe07c0.tar.zst nixlib-31fef05c7ca0f7e55773b75a1db71c8fc2fe07c0.zip |
ocamlPackages.lwt: 2.6.0 -> 2.7.1
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/lwt/default.nix | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/pkgs/development/ocaml-modules/lwt/default.nix b/pkgs/development/ocaml-modules/lwt/default.nix index d3a373ab4dbc..53d5a25a39eb 100644 --- a/pkgs/development/ocaml-modules/lwt/default.nix +++ b/pkgs/development/ocaml-modules/lwt/default.nix @@ -1,19 +1,30 @@ { stdenv, fetchzip, which, cryptopp, ocaml, findlib, ocamlbuild, camlp4 , ocaml_react, ocaml_ssl, libev, pkgconfig, ncurses, ocaml_oasis, glib -, ppx_tools, result +, ppx_tools, result, cppo , ppxSupport ? stdenv.lib.versionAtLeast ocaml.version "4.02" }: +let param = + if stdenv.lib.versionAtLeast ocaml.version "4.02" + then { + version = "2.7.1"; + sha256 = "0w7f59havrl2fsnvs84lm7wlqpsrldg80gy5afpnpr21zkw22g8w"; + } else { + version = "2.6.0"; + sha256 = "0f1h83zh60rspm4fxd96z9h5bkhq1n1q968hgq92sq4a6bfi1c2w"; + }; +in + stdenv.mkDerivation rec { name = "ocaml-lwt-${version}"; - version = "2.6.0"; + inherit (param) version; src = fetchzip { url = "https://github.com/ocsigen/lwt/archive/${version}.tar.gz"; - sha256 = "0f1h83zh60rspm4fxd96z9h5bkhq1n1q968hgq92sq4a6bfi1c2w"; + inherit (param) sha256; }; - buildInputs = [ ocaml_oasis pkgconfig which cryptopp ocaml findlib ocamlbuild glib ncurses camlp4 ] + buildInputs = [ ocaml_oasis pkgconfig which cryptopp ocaml findlib ocamlbuild glib ncurses camlp4 cppo ] ++ stdenv.lib.optional ppxSupport ppx_tools; propagatedBuildInputs = [ result ocaml_react ocaml_ssl libev ]; |