diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-09-04 02:39:03 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-09-04 02:39:49 +0000 |
commit | ebce795c5c6d5d156783cff389194ab6e6c7eba5 (patch) | |
tree | ab5d93fddc235f475ceb2596a96839f84c448136 /pkgs/development/coq-modules/CoLoR | |
parent | 1af75ba80253eaf264dec2c3f3a3deb4f04df4f0 (diff) |
coqPackages: remove duplication in mkCoqPackages
Diffstat (limited to 'pkgs/development/coq-modules/CoLoR')
-rw-r--r-- | pkgs/development/coq-modules/CoLoR/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/coq-modules/CoLoR/default.nix b/pkgs/development/coq-modules/CoLoR/default.nix index c7aaf2a2e3299..ececcf8074051 100644 --- a/pkgs/development/coq-modules/CoLoR/default.nix +++ b/pkgs/development/coq-modules/CoLoR/default.nix @@ -1,5 +1,9 @@ { stdenv, fetchurl, coq }: +if !stdenv.lib.versionAtLeast coq.coq-version "8.6" +then throw "CoLoR is not available for Coq ${coq.coq-version}" +else + stdenv.mkDerivation { name = "coq${coq.coq-version}-CoLoR-1.3.0"; |