summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
diff options
context:
space:
mode:
authorMalte Brandy <malte.brandy@maralorn.de>2020-06-21 21:23:47 +0200
committerMalte Brandy <malte.brandy@maralorn.de>2020-06-22 21:16:54 +0200
commitbc8b615344c6ca7746a527058ffc1f0726aff897 (patch)
treea2911ccdcaa5eee9a4680cbc1113e2f8642e56e2 /pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
parentffbf8ba912e21b5fc5e139d23fd15bb273800030 (diff)
hackagePackages.hnix: Fix build
hnix 0.9.0 does not provide an executable for ghc <8.10 anymore.
So we need to disable optparse-applicative completion generation for all other versions.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix3
1 files changed, 3 insertions, 0 deletions
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 7348dd9f22e96..cdc3663356388 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
@@ -132,4 +132,7 @@ self: super: {
     excludes = ["package.yaml"];
   });
 
+  # hnix 0.9.0 does not provide an executable for ghc < 8.10, so define completions here for now.
+  hnix = generateOptparseApplicativeCompletion "hnix" super.hnix;
+
 }