git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #62776 from vbgl/coq-simple-io-1.2.0

[coq] simple-io: 1.0.0 -> 1.2.0; QuickChick: init at 1.1.0 for Coq 8.9

commitb58ada326aa612ea1e2fb9a53d550999e94f1985 authorVincent Laporte <vbgl@users.noreply.github.com> dateThu 13 Jun 2019, 06:58 (7 years ago) parent4bfbcdb7af3554
2 files changed+17−14
pkgs/development/coq-modules/QuickChick/default.nix+15−12 pkgs/development/coq-modules/simple-io/default.nix+2−2
pkgs/development/coq-modules/QuickChick/default.nix+15−12
@@ -14,23 +14,23 @@ let params =
1414 sha256 = "0fri4nih40vfb0fbr82dsi631ydkw48xszinq43lyinpknf54y17";
1515 };
1616
17− "8.7" = {
18− version = "20171212";
19− rev = "195e550a1cf0810497734356437a1720ebb6d744";
20− sha256 = "0zm23y89z0h4iamy74qk9qi2pz2cj3ga6ygav0w79n0qyqwhxcq1";
21− };
2217 "8.8" = rec {
23− preConfigure = "substituteInPlace Makefile --replace quickChickTool.byte quickChickTool.native";
2418 version = "20190311";
2519 rev = "22af9e9a223d0038f05638654422e637e863b355";
2620 sha256 = "00rnr19lg6lg0haq1sy4ld38p7imzand6fc52fvfq27gblxkp2aq";
27− buildInputs = with coq.ocamlPackages; [ ocamlbuild num ];
28− propagatedBuildInputs = [ coq-ext-lib simple-io ];
21+ };
22+
23+ "8.9" = rec {
24+ version = "1.1.0";
25+ rev = "v${version}";
26+ sha256 = "1c34v1k37rk7v0xk2czv5n79mbjxjrm6nh3llg2mpfmdsqi68wf3";
2927 };
3028 };
3129 param = params."${coq.coq-version}";
3230in
3331
32+let recent = stdenv.lib.versionAtLeast coq.coq-version "8.8"; in
33+
3434stdenv.mkDerivation rec {
3535
3636 name = "coq${coq.coq-version}-QuickChick-${param.version}";
@@ -41,16 +41,19 @@ stdenv.mkDerivation rec {
4141 inherit (param) rev sha256;
4242 };
4343
44+ preConfigure = stdenv.lib.optionalString recent
45+ "substituteInPlace Makefile --replace quickChickTool.byte quickChickTool.native";
46+
4447 buildInputs = [ coq ]
4548 ++ (with coq.ocamlPackages; [ ocaml camlp5 findlib ])
46− ++ (param.buildInputs or [])
49+ ++ stdenv.lib.optionals recent
50+ (with coq.ocamlPackages; [ ocamlbuild num ])
4751 ;
48− propagatedBuildInputs = [ ssreflect ] ++ (param.propagatedBuildInputs or []);
52+ propagatedBuildInputs = [ ssreflect ]
53+ ++ stdenv.lib.optionals recent [ coq-ext-lib simple-io ];
4954
5055 enableParallelBuilding = false;
5156
52− preConfigure = param.preConfigure or null;
53−
5457 installPhase = ''
5558 make -f Makefile.coq COQLIB=$out/lib/coq/${coq.coq-version}/ install
5659 '';
pkgs/development/coq-modules/simple-io/default.nix+2−2
@@ -1,13 +1,13 @@
11{ stdenv, fetchFromGitHub, coq, coq-ext-lib }:
22
33stdenv.mkDerivation rec {
4− version = "1.0.0";
4+ version = "1.2.0";
55 name = "coq${coq.coq-version}-simple-io-${version}";
66 src = fetchFromGitHub {
77 owner = "Lysxia";
88 repo = "coq-simple-io";
99 rev = version;
10− sha256 = "06gnbl8chv6ig18rlxnp8gg0np6863kxd7j15h46q0v1cnpx84lp";
10+ sha256 = "1im1vwp7l7ha8swnhgbih0qjg187n8yx14i003nf6yy7p0ryxc9m";
1111 };
1212
1313 buildInputs = [ coq ] ++ (with coq.ocamlPackages; [ ocaml ocamlbuild ]);