summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2018-11-04 17:39:09 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2018-11-04 20:49:38 +0000
commite338d801e207a888e3125d88108e8166c94034ac (patch)
tree7bcc3752dd0f5d31aae150cef07ddb64a5134e61 /pkgs
parentb3f6840d8e8ddba9ce5aa3d5a07479e3663cb38a (diff)
downloadnixlib-e338d801e207a888e3125d88108e8166c94034ac.tar
nixlib-e338d801e207a888e3125d88108e8166c94034ac.tar.gz
nixlib-e338d801e207a888e3125d88108e8166c94034ac.tar.bz2
nixlib-e338d801e207a888e3125d88108e8166c94034ac.tar.lz
nixlib-e338d801e207a888e3125d88108e8166c94034ac.tar.xz
nixlib-e338d801e207a888e3125d88108e8166c94034ac.tar.zst
nixlib-e338d801e207a888e3125d88108e8166c94034ac.zip
mkCoqPackages: look for “dontFilter” in coq derivation
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/coq-packages.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/top-level/coq-packages.nix b/pkgs/top-level/coq-packages.nix
index 3ba90f3b5943..2084140c3fd8 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;