diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-12-08 00:17:44 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-12-08 00:17:44 +0100 |
| commit | 0826ec2f6718d84b92e6dd546ad7ecfdf8da80f3 (patch) | |
| tree | 2ebf8ae93d49bdb72e5663f0e81bc7da81471df1 /modules | |
| parent | 03aca014ef8f6ac32e301244fdcaaf1306d3584e (diff) | |
have coq be enabled as a prover by enabling the coq option
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/why3.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/why3.nix b/modules/why3.nix index ba3169e..478aa10 100644 --- a/modules/why3.nix +++ b/modules/why3.nix @@ -3,7 +3,8 @@ with lib; let cfg = config.why3; - why3BuildInputs = [ cfg.package ] ++ cfg.provers; + why3BuildInputs = [ cfg.package ] ++ cfg.provers + ++ (optional config.coq.enable config.coq.coqPackages.coq); why3Conf = pkgs.runCommand "why3.conf" { buildInputs = why3BuildInputs; } '' why3 -C $out config detect echo "${cfg.extraConfig}" >> $out @@ -25,7 +26,8 @@ in { default = [ ]; description = '' A list of packages that should be detected as provers by Why3 and - added as build inputs. + added as build inputs. Coq can be added independently using the + coq option. ''; example = literalExample "with pkgs; [ z3 ccv4 ]"; }; @@ -43,7 +45,6 @@ in { # buildInputs = [(cfg.package.withProvers cfg.provers)]; aliases = { why3 = "${cfg.package}/bin/why3 ${why3Flags} \\$@"; }; coq = { - enable = true; rc = '' Add Rec LoadPath "${cfg.package}/lib/why3/coq/" as Why3. ''; |
