haskell generic builder: Add flag to allow inconsistent dependencies.

This commit is contained in:
Shea Levy
2018-12-15 13:31:08 -05:00
parent 562c620398
commit 30fb5b0dcf
2 changed files with 17 additions and 5 deletions
+7
View File
@@ -408,4 +408,11 @@ rec {
*/
generateOptparseApplicativeCompletions = commands: pkg:
pkgs.lib.foldr generateOptparseApplicativeCompletion pkg commands;
# Don't fail at configure time if there are multiple versions of the
# same package in the (recursive) dependencies of the package being
# built. Will delay failures, if any, to compile time.
allowInconsistentDependencies = drv: overrideCabal drv (drv: {
allowInconsistentDependencies = true;
});
}