From 2dab5712fb566cb252987d509d1cce1dfce947ea Mon Sep 17 00:00:00 2001 From: Richard Marko Date: Wed, 29 Jul 2020 21:18:07 +0200 Subject: [PATCH] haskellPackages.hnix: fix build for ghc-8.10 by adding repline --- .../haskell-modules/configuration-ghc-8.10.x.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix index 69f212dad9a..6be0c3c9b1a 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix @@ -111,6 +111,10 @@ self: super: { }); # hnix 0.9.0 does not provide an executable for ghc < 8.10, so define completions here for now. - hnix = generateOptparseApplicativeCompletion "hnix" super.hnix; + hnix = generateOptparseApplicativeCompletion "hnix" + (overrideCabal super.hnix (drv: { + # executable is allowed for ghc >= 8.10 and needs repline + executableHaskellDepends = drv.executableToolDepends or [] ++ [ self.repline ]; + })); }