aboutsummaryrefslogtreecommitdiff
path: root/dev/ci/nix/default.nix
diff options
context:
space:
mode:
authorVincent Laporte2019-01-24 09:58:33 +0000
committerVincent Laporte2019-01-24 14:53:08 +0000
commitdec2994980e00eff72f474aed6da94b97c3d703a (patch)
tree00382fce91ed80519498880ceb6c4c7af357d3b3 /dev/ci/nix/default.nix
parent43525f9ee12a40bf3ad2c2521832fd7fc3a658f8 (diff)
[nix-CI] Split the build inputs
Coq and the Coq libraries can now be excluded (by setting the NOCOQ environment variable).
Diffstat (limited to 'dev/ci/nix/default.nix')
-rw-r--r--dev/ci/nix/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/dev/ci/nix/default.nix b/dev/ci/nix/default.nix
index 2c6e5b37bc..277e9ee08f 100644
--- a/dev/ci/nix/default.nix
+++ b/dev/ci/nix/default.nix
@@ -2,6 +2,7 @@
, branch
, wd
, project ? "xyz"
+, withCoq ? true
, bn ? "master"
}:
@@ -75,10 +76,16 @@ else
let prj = projects."${project}"; in
+let inherit (stdenv.lib) optional optionals; in
+
stdenv.mkDerivation {
name = "shell-for-${project}-in-${branch}";
- buildInputs = [ coq ] ++ (prj.buildInputs or []);
+ buildInputs =
+ optional withCoq coq
+ ++ (prj.buildInputs or [])
+ ++ optionals withCoq (prj.coqBuildInputs or [])
+ ;
configure = prj.configure or "true";
make = prj.make or "make";