about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2024-04-22 12:27:22 +0200
committersternenseemann <sternenseemann@systemli.org>2024-04-22 12:30:20 +0200
commit2a76047d229816dcac2957160d73f4e0b0657ddc (patch)
tree2e04fe0eea408082df87ce8ae2da717eb6624d3a
parent80cc0cb940d000304848156de4571f5976726a1a (diff)
spago: move completions override to configuration-nix.nix
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix3
-rw-r--r--pkgs/development/haskell-modules/configuration-nix.nix3
2 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 777cbef335970..b0cd19321c97f 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -1333,9 +1333,6 @@ self: super: {
   # https://github.com/haskell/hoopl/issues/50
   hoopl = dontCheck super.hoopl;
 
-  # Generate shell completion for spago
-  spago = self.generateOptparseApplicativeCompletions [ "spago" ] super.spago;
-
   # https://github.com/DanielG/cabal-helper/pull/123
   cabal-helper = doJailbreak super.cabal-helper;
 
diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix
index 96dc1313c942d..9f873eec2611c 100644
--- a/pkgs/development/haskell-modules/configuration-nix.nix
+++ b/pkgs/development/haskell-modules/configuration-nix.nix
@@ -886,6 +886,9 @@ self: super: builtins.intersectAttrs super {
 
       # Overly strict upper bound on text
       doJailbreak
+
+      # Generate shell completion for spago
+      (self.generateOptparseApplicativeCompletions [ "spago" ])
     ];
 
   # checks SQL statements at compile time, and so requires a running PostgreSQL