about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-11-19 13:17:23 +0100
committerRobert Hensing <robert@roberthensing.nl>2023-11-19 13:17:23 +0100
commit9f4a3df2e739c43e116a5f37eab86d7b211111da (patch)
tree8c4a59c4b7ccb795474a7203b26c9409e6fb77e6 /pkgs/by-name
parenteb8dafd288ccfffc18ff3b6fd41f01ef896e4039 (diff)
changelog-d: Add shell completions
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/ch/changelog-d/package.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/by-name/ch/changelog-d/package.nix b/pkgs/by-name/ch/changelog-d/package.nix
index 2bccb02a2eb2f..10d4ad1ae3558 100644
--- a/pkgs/by-name/ch/changelog-d/package.nix
+++ b/pkgs/by-name/ch/changelog-d/package.nix
@@ -8,7 +8,13 @@
 let
   hsPkg = haskellPackages.changelog-d;
 
-  haskellModifications = haskell.lib.justStaticExecutables;
+  addCompletions = haskellPackages.generateOptparseApplicativeCompletions ["changelog-d"];
+
+  haskellModifications =
+    lib.flip lib.pipe [
+      addCompletions
+      haskell.lib.justStaticExecutables
+    ];
 
   mkDerivationOverrides = finalAttrs: oldAttrs: {