diff options
author | Shea Levy <shea@shealevy.com> | 2018-12-15 13:31:08 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2018-12-15 13:31:08 -0500 |
commit | 30fb5b0dcf68e94625c48c023e4c7662523f7b24 (patch) | |
tree | f62da61975d57ff204952cb63bde285467b3d49b /pkgs/development/haskell-modules/lib.nix | |
parent | 562c62039821a276dc342258ec5efef73022fdcf (diff) | |
download | nixpkgs-30fb5b0dcf68e94625c48c023e4c7662523f7b24.tar nixpkgs-30fb5b0dcf68e94625c48c023e4c7662523f7b24.tar.gz nixpkgs-30fb5b0dcf68e94625c48c023e4c7662523f7b24.tar.bz2 nixpkgs-30fb5b0dcf68e94625c48c023e4c7662523f7b24.tar.lz nixpkgs-30fb5b0dcf68e94625c48c023e4c7662523f7b24.tar.xz nixpkgs-30fb5b0dcf68e94625c48c023e4c7662523f7b24.tar.zst nixpkgs-30fb5b0dcf68e94625c48c023e4c7662523f7b24.zip |
haskell generic builder: Add flag to allow inconsistent dependencies.
Diffstat (limited to 'pkgs/development/haskell-modules/lib.nix')
-rw-r--r-- | pkgs/development/haskell-modules/lib.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/lib.nix b/pkgs/development/haskell-modules/lib.nix index e3b73641989..9f18db1e6e9 100644 --- a/pkgs/development/haskell-modules/lib.nix +++ b/pkgs/development/haskell-modules/lib.nix @@ -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; + }); } |