haskellPackages.hnix: fix build for ghc-8.10 by adding repline

This commit is contained in:
Richard Marko 2020-07-29 21:18:07 +02:00 committed by Peter Simons
parent aa66f3fd08
commit 2dab5712fb

View file

@ -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 ];
}));
}