summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-common.nix
diff options
context:
space:
mode:
authorMalte Brandy <malte.brandy@maralorn.de>2021-03-20 12:08:03 +0100
committerMalte Brandy <malte.brandy@maralorn.de>2021-03-20 13:38:26 +0100
commitb37db3928282639d6cb604d64a5ba600016863f3 (patch)
treea67ce0424ba1a4217b914442dba40ec787ffe81b /pkgs/development/haskell-modules/configuration-common.nix
parent6976cad5c7e95f3061894ddd9e62338ecccb2e81 (diff)
downloadnixpkgs-b37db3928282639d6cb604d64a5ba600016863f3.tar
nixpkgs-b37db3928282639d6cb604d64a5ba600016863f3.tar.gz
nixpkgs-b37db3928282639d6cb604d64a5ba600016863f3.tar.bz2
nixpkgs-b37db3928282639d6cb604d64a5ba600016863f3.tar.lz
nixpkgs-b37db3928282639d6cb604d64a5ba600016863f3.tar.xz
nixpkgs-b37db3928282639d6cb604d64a5ba600016863f3.tar.zst
nixpkgs-b37db3928282639d6cb604d64a5ba600016863f3.zip
haskellPackages.niv: Fix build
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-common.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 0bfe615c31b..18d85c5775e 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -946,7 +946,10 @@ self: super: {
 
   # Generate shell completion.
   cabal2nix = generateOptparseApplicativeCompletion "cabal2nix" super.cabal2nix;
-  niv = generateOptparseApplicativeCompletion "niv" super.niv;
+  niv = generateOptparseApplicativeCompletion "niv" (super.niv.overrideScope (self: super: {
+   # Needs override because of: https://github.com/nmattia/niv/issues/312
+   optparse-applicative = self.optparse-applicative_0_15_1_0;
+  }));
   ormolu = generateOptparseApplicativeCompletion "ormolu" super.ormolu;
   stack = generateOptparseApplicativeCompletion "stack" super.stack;