From 9f4a3df2e739c43e116a5f37eab86d7b211111da Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 19 Nov 2023 13:17:23 +0100 Subject: [PATCH] changelog-d: Add shell completions --- pkgs/by-name/ch/changelog-d/package.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ch/changelog-d/package.nix b/pkgs/by-name/ch/changelog-d/package.nix index 2bccb02a2eb2..10d4ad1ae355 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: {