git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.alcotest: 0.7.2 -> 0.8.1
commit33c0dcacd0d61a41e6fdfb3244dd1fd442cf0738 authorVincent Laporte <Vincent.Laporte@gmail.com> dateTue 31 Oct 2017, 01:06 (9 years ago) parent54d1e14
1 file changed+21−6
pkgs/development/ocaml-modules/alcotest/default.nix+21−6
pkgs/development/ocaml-modules/alcotest/default.nix+21−6
@@ -1,20 +1,35 @@
1−{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, topkg, opam, cmdliner, astring, fmt, result }:
1+{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, topkg, opam, jbuilder
2+, cmdliner, astring, fmt, result
3+}:
4+
5+let param =
6+ if stdenv.lib.versionAtLeast ocaml.version "4.02" then {
7+ version = "0.8.1";
8+ sha256 = "1bjhgwmshlaz9xncrrkknys7prigf8vlg1kqvfx9l8kn92mlf10b";
9+ buildInputs = [ jbuilder ];
10+ buildPhase = "jbuilder build -p alcotest";
11+ inherit (jbuilder) installPhase;
12+ } else {
13+ version = "0.7.2";
14+ sha256 = "1qgsz2zz5ky6s5pf3j3shc4fjc36rqnjflk8x0wl1fcpvvkr52md";
15+ buildInputs = [ ocamlbuild opam topkg ];
16+ inherit (topkg) buildPhase installPhase;
17+ };
18+in
219
320stdenv.mkDerivation rec {
421 name = "ocaml${ocaml.version}-alcotest-${version}";
5− version = "0.7.2";
22+ inherit (param) version buildPhase installPhase;
623
724 src = fetchzip {
825 url = "https://github.com/mirage/alcotest/archive/${version}.tar.gz";
9− sha256 = "1qgsz2zz5ky6s5pf3j3shc4fjc36rqnjflk8x0wl1fcpvvkr52md";
26+ inherit (param) sha256;
1027 };
1128
12− buildInputs = [ ocaml findlib ocamlbuild opam topkg ];
29+ buildInputs = [ ocaml findlib ] ++ param.buildInputs;
1330
1431 propagatedBuildInputs = [ cmdliner astring fmt result ];
1532
16− inherit (topkg) buildPhase installPhase;
17−
1833 createFindlibDestdir = true;
1934
2035 meta = with stdenv.lib; {