diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-04-04 15:09:38 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-04-04 15:20:26 +0000 |
commit | 8aa1e53a98c35a9612b22d2f251ed50d5b29a9a8 (patch) | |
tree | dbde9f2677641b99f9535b1dabcd05f7fd71f3d9 /pkgs/development/ocaml-modules | |
parent | 50b0afa269c221577e78e3dc9ed6095be5d5a4b3 (diff) | |
download | nixlib-8aa1e53a98c35a9612b22d2f251ed50d5b29a9a8.tar nixlib-8aa1e53a98c35a9612b22d2f251ed50d5b29a9a8.tar.gz nixlib-8aa1e53a98c35a9612b22d2f251ed50d5b29a9a8.tar.bz2 nixlib-8aa1e53a98c35a9612b22d2f251ed50d5b29a9a8.tar.lz nixlib-8aa1e53a98c35a9612b22d2f251ed50d5b29a9a8.tar.xz nixlib-8aa1e53a98c35a9612b22d2f251ed50d5b29a9a8.tar.zst nixlib-8aa1e53a98c35a9612b22d2f251ed50d5b29a9a8.zip |
ocamlPackages.ocsigen_deriving: 0.7.1 -> 0.8.1
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/ocsigen-deriving/default.nix | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/pkgs/development/ocaml-modules/ocsigen-deriving/default.nix b/pkgs/development/ocaml-modules/ocsigen-deriving/default.nix index 653445617958..569f5081355c 100644 --- a/pkgs/development/ocaml-modules/ocsigen-deriving/default.nix +++ b/pkgs/development/ocaml-modules/ocsigen-deriving/default.nix @@ -1,15 +1,30 @@ -{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, oasis, ocaml_optcomp, camlp4 }: +{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, oasis, ocaml_optcomp, camlp4 +, num +}: -let version = "0.7.1"; in +let param = + if stdenv.lib.versionAtLeast ocaml.version "4.03" + then { + version = "0.8.1"; + sha256 = "03vzrybdpjydbpil97zmir71kpsn2yxkjnzysma7fvybk8ll4zh9"; + buildInputs = [ num ]; + } else { + version = "0.7.1"; + sha256 = "0gg3nr3iic4rwqrcc0qvfm9x0x57zclvdsnpy0z8rv2fl5isbzms"; + }; +in + +let inherit (param) version; in stdenv.mkDerivation { name = "ocsigen-deriving-${version}"; src = fetchzip { url = "https://github.com/ocsigen/deriving/archive/${version}.tar.gz"; - sha256 = "0gg3nr3iic4rwqrcc0qvfm9x0x57zclvdsnpy0z8rv2fl5isbzms"; - }; + inherit (param) sha256; + }; - buildInputs = [ ocaml findlib ocamlbuild oasis ocaml_optcomp camlp4 ]; + buildInputs = [ ocaml findlib ocamlbuild oasis ocaml_optcomp camlp4 ] + ++ (param.buildInputs or []); createFindlibDestdir = true; |