QuickChick: format
This commit is contained in:
parent
7251411f95
commit
a8f2d2ca78
|
@ -1,11 +1,11 @@
|
||||||
{ lib, mkCoqDerivation, coq, ssreflect, coq-ext-lib, simple-io, version ? null }:
|
{ lib, mkCoqDerivation, coq, ssreflect, coq-ext-lib, simple-io, version ? null }:
|
||||||
with lib;
|
|
||||||
let recent = versions.isGe "8.7" coq.coq-version; in
|
let recent = lib.versions.isGe "8.7" coq.coq-version; in
|
||||||
mkCoqDerivation {
|
mkCoqDerivation {
|
||||||
pname = "QuickChick";
|
pname = "QuickChick";
|
||||||
owner = "QuickChick";
|
owner = "QuickChick";
|
||||||
inherit version;
|
inherit version;
|
||||||
defaultVersion = with versions; switch [ coq.coq-version ssreflect.version ] [
|
defaultVersion = with lib; with versions; lib.switch [ coq.coq-version ssreflect.version ] [
|
||||||
{ cases = [ "8.13" pred.true ]; out = "1.5.0"; }
|
{ cases = [ "8.13" pred.true ]; out = "1.5.0"; }
|
||||||
{ cases = [ "8.12" pred.true ]; out = "1.4.0"; }
|
{ cases = [ "8.12" pred.true ]; out = "1.4.0"; }
|
||||||
{ cases = [ "8.11" pred.true ]; out = "1.3.2"; }
|
{ cases = [ "8.11" pred.true ]; out = "1.3.2"; }
|
||||||
|
@ -30,19 +30,19 @@ mkCoqDerivation {
|
||||||
release."20170512".sha256 = "033ch10i5wmqyw8j6wnr0dlbnibgfpr1vr0c07q3yj6h23xkmqpg";
|
release."20170512".sha256 = "033ch10i5wmqyw8j6wnr0dlbnibgfpr1vr0c07q3yj6h23xkmqpg";
|
||||||
releaseRev = v: "v${v}";
|
releaseRev = v: "v${v}";
|
||||||
|
|
||||||
preConfigure = optionalString recent
|
preConfigure = lib.optionalString recent
|
||||||
"substituteInPlace Makefile --replace quickChickTool.byte quickChickTool.native";
|
"substituteInPlace Makefile --replace quickChickTool.byte quickChickTool.native";
|
||||||
|
|
||||||
mlPlugin = true;
|
mlPlugin = true;
|
||||||
extraBuildInputs = optional recent coq.ocamlPackages.num;
|
extraBuildInputs = lib.optional recent coq.ocamlPackages.num;
|
||||||
propagatedBuildInputs = [ ssreflect ]
|
propagatedBuildInputs = [ ssreflect ]
|
||||||
++ optionals recent [ coq-ext-lib simple-io ]
|
++ lib.optionals recent [ coq-ext-lib simple-io ]
|
||||||
++ optional recent coq.ocamlPackages.ocamlbuild;
|
++ lib.optional recent coq.ocamlPackages.ocamlbuild;
|
||||||
extraInstallFlags = [ "-f Makefile.coq" ];
|
extraInstallFlags = [ "-f Makefile.coq" ];
|
||||||
|
|
||||||
enableParallelBuilding = false;
|
enableParallelBuilding = false;
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Randomized property-based testing plugin for Coq; a clone of Haskell QuickCheck";
|
description = "Randomized property-based testing plugin for Coq; a clone of Haskell QuickCheck";
|
||||||
maintainers = with maintainers; [ jwiegley ];
|
maintainers = with maintainers; [ jwiegley ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue