diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-11-04 17:39:09 +0000 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2018-11-04 20:49:38 +0000 |
commit | e338d801e207a888e3125d88108e8166c94034ac (patch) | |
tree | 7bcc3752dd0f5d31aae150cef07ddb64a5134e61 /pkgs/top-level | |
parent | b3f6840d8e8ddba9ce5aa3d5a07479e3663cb38a (diff) | |
download | nixpkgs-e338d801e207a888e3125d88108e8166c94034ac.tar nixpkgs-e338d801e207a888e3125d88108e8166c94034ac.tar.gz nixpkgs-e338d801e207a888e3125d88108e8166c94034ac.tar.bz2 nixpkgs-e338d801e207a888e3125d88108e8166c94034ac.tar.lz nixpkgs-e338d801e207a888e3125d88108e8166c94034ac.tar.xz nixpkgs-e338d801e207a888e3125d88108e8166c94034ac.tar.zst nixpkgs-e338d801e207a888e3125d88108e8166c94034ac.zip |
mkCoqPackages: look for “dontFilter” in coq derivation
Diffstat (limited to 'pkgs/top-level')
-rw-r--r-- | pkgs/top-level/coq-packages.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/top-level/coq-packages.nix b/pkgs/top-level/coq-packages.nix index 3ba90f3b594..2084140c3fd 100644 --- a/pkgs/top-level/coq-packages.nix +++ b/pkgs/top-level/coq-packages.nix @@ -48,9 +48,18 @@ let in rec { + /* The function `mkCoqPackages` takes as input a derivation for Coq and produces + * a set of libraries built with that specific Coq. More libraries are known to + * this function than what is compatible with that version of Coq. Therefore, + * libraries that are not known to be compatible are removed (filtered out) from + * the resulting set. For meta-programming purposes (inpecting the derivations + * rather than building the libraries) this filtering can be disabled by setting + * a `dontFilter` attribute into the Coq derivation. + */ mkCoqPackages = coq: let self = mkCoqPackages' self coq; in - filterCoqPackages coq self; + if coq.dontFilter or false then self + else filterCoqPackages coq self; coq_8_5 = callPackage ../applications/science/logic/coq { ocamlPackages = ocamlPackages_4_05; |