git.iko.soy/typeable/nixpkgs
on master help sign in
coqPackages.QuickChick: 1.2.0 → 1.2.1, 1.3.1
commit60940d7dde0eed8d8d1bc8614ebfd021e09ddc6b authorVincent Laporte <Vincent.Laporte@gmail.com> dateSat 27 Jun 2020, 11:19 (6 years ago) parent9f0f539
1 file changed+20−8
pkgs/development/coq-modules/QuickChick/default.nix+20−8
pkgs/development/coq-modules/QuickChick/default.nix+20−8
@@ -27,15 +27,23 @@ let params =
2727 };
2828
2929 "8.10" = rec {
30− version = "1.2.0";
30+ version = "1.2.1";
3131 rev = "v${version}";
32− sha256 = "1xs4mr3rdb0g44736jb40k370hw3maxdk12jiq1w1dl3q5gfrhah";
32+ sha256 = "17vz88xjzxh3q7hs6hnndw61r3hdfawxp5awqpgfaxx4w6ni8z46";
33+ };
34+
35+ "8.11" = rec {
36+ version = "1.3.1";
37+ rev = "v${version}";
38+ sha256 = "0cajan9w52faqrg42r9rxai4wzsggs86qar88w7lcb928jvcakml";
3339 };
3440 };
3541 param = params.${coq.coq-version};
3642in
3743
38−let recent = stdenv.lib.versionAtLeast coq.coq-version "8.8"; in
44+let inherit (stdenv.lib) maintainers optional optionals versionAtLeast; in
45+
46+let recent = versionAtLeast coq.coq-version "8.8"; in
3947
4048stdenv.mkDerivation {
4149
@@ -51,12 +59,16 @@ stdenv.mkDerivation {
5159 "substituteInPlace Makefile --replace quickChickTool.byte quickChickTool.native";
5260
5361 buildInputs = [ coq ]
54− ++ (with coq.ocamlPackages; [ ocaml camlp5 findlib ])
55− ++ stdenv.lib.optionals recent
56− (with coq.ocamlPackages; [ ocamlbuild num ])
62+ ++ (with coq.ocamlPackages; [ ocaml findlib ])
63+ ++ optionals (recent && !versionAtLeast coq.coq-version "8.10")
64+ (with coq.ocamlPackages; [ camlp5 ocamlbuild ])
65+ ++ optional recent coq.ocamlPackages.num
5766 ;
5867 propagatedBuildInputs = [ ssreflect ]
59− ++ stdenv.lib.optionals recent [ coq-ext-lib simple-io ];
68+ ++ optionals recent [ coq-ext-lib simple-io ]
69+ ++ optional (versionAtLeast coq.coq-version "8.10")
70+ coq.ocamlPackages.ocamlbuild
71+ ;
6072
6173 enableParallelBuilding = false;
6274
@@ -64,7 +76,7 @@ stdenv.mkDerivation {
6476 make -f Makefile.coq COQLIB=$out/lib/coq/${coq.coq-version}/ install
6577 '';
6678
67− meta = with stdenv.lib; {
79+ meta = {
6880 homepage = "https://github.com/QuickChick/QuickChick";
6981 description = "Randomized property-based testing plugin for Coq; a clone of Haskell QuickCheck";
7082 maintainers = with maintainers; [ jwiegley ];