diff options
Diffstat (limited to 'pkgs/development/coq-modules/bignums/default.nix')
-rw-r--r-- | pkgs/development/coq-modules/bignums/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/coq-modules/bignums/default.nix b/pkgs/development/coq-modules/bignums/default.nix index 45786c5a9550..474ce05c1d47 100644 --- a/pkgs/development/coq-modules/bignums/default.nix +++ b/pkgs/development/coq-modules/bignums/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchFromGitHub, coq }: -let param = +let params = { "8.6" = { rev = "v8.6.0"; @@ -14,7 +14,8 @@ let param = rev = "V8.8+beta1"; sha256 = "1ymxyrvjygscxkfj3qkq66skl3vdjhb670rzvsvgmwrjkrakjnfg"; }; - }."${coq.coq-version}" + }; + param = params."${coq.coq-version}" ; in stdenv.mkDerivation rec { @@ -37,6 +38,6 @@ stdenv.mkDerivation rec { }; passthru = { - compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" ]; + compatibleCoqVersions = v: builtins.hasAttr v params; }; } |