diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2016-10-13 21:16:25 +0200 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2016-10-17 09:41:16 +0200 |
commit | 99edbe65c1ff6894b82eab4387983f5c40fc33e5 (patch) | |
tree | 18e71645da956f5e906b0424da07e15734e630a8 /pkgs/development/ocaml-modules/cryptokit | |
parent | 423a195637613221bbf595a638adafd517ef2fb8 (diff) | |
download | nixlib-99edbe65c1ff6894b82eab4387983f5c40fc33e5.tar nixlib-99edbe65c1ff6894b82eab4387983f5c40fc33e5.tar.gz nixlib-99edbe65c1ff6894b82eab4387983f5c40fc33e5.tar.bz2 nixlib-99edbe65c1ff6894b82eab4387983f5c40fc33e5.tar.lz nixlib-99edbe65c1ff6894b82eab4387983f5c40fc33e5.tar.xz nixlib-99edbe65c1ff6894b82eab4387983f5c40fc33e5.tar.zst nixlib-99edbe65c1ff6894b82eab4387983f5c40fc33e5.zip |
ocamlPackage.cryptokit: 1.10 -> 1.11
Diffstat (limited to 'pkgs/development/ocaml-modules/cryptokit')
-rw-r--r-- | pkgs/development/ocaml-modules/cryptokit/default.nix | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/pkgs/development/ocaml-modules/cryptokit/default.nix b/pkgs/development/ocaml-modules/cryptokit/default.nix index 461e2b887084..9ecd6dae2948 100644 --- a/pkgs/development/ocaml-modules/cryptokit/default.nix +++ b/pkgs/development/ocaml-modules/cryptokit/default.nix @@ -1,17 +1,32 @@ -{ stdenv, fetchurl, zlib, ocaml, findlib, ocamlbuild, ncurses }: +{ stdenv, fetchurl, zlib, ocaml, findlib, ocamlbuild, zarith, ncurses }: assert stdenv.lib.versionAtLeast ocaml.version "3.12"; +let param = + if stdenv.lib.versionAtLeast ocaml.version "4.02" + then { + version = "1.11"; + url = http://forge.ocamlcore.org/frs/download.php/1618/cryptokit-1.11.tar.gz; + sha256 = "1c1vn15lf2b5a8nfa2v2brxm7bwby540nf6q0vkndgkq5qcw96j8"; + inherit zarith; + } else { + version = "1.10"; + url = http://forge.ocamlcore.org/frs/download.php/1493/cryptokit-1.10.tar.gz; + sha256 = "1k2f2ixm7jcsgrzn9lz1hm9qqgq71lk9lxy3v3cwsd8xdrj3jrnv"; + zarith = null; + }; +in + stdenv.mkDerivation rec { name = "cryptokit-${version}"; - version = "1.10"; + inherit (param) version; src = fetchurl { - url = http://forge.ocamlcore.org/frs/download.php/1493/cryptokit-1.10.tar.gz; - sha256 = "1k2f2ixm7jcsgrzn9lz1hm9qqgq71lk9lxy3v3cwsd8xdrj3jrnv"; + inherit (param) url sha256; }; buildInputs = [ zlib ocaml findlib ocamlbuild ncurses ]; + propagatedBuildInputs = [ param.zarith ]; buildFlags = "setup.data build"; |