From 10e7cf92bc9508ac42bb2dcf7ee2a7e261d49771 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 24 Feb 2019 10:01:01 +0100 Subject: [PATCH] haskell-ci: enable command-line completion --- .../haskell-modules/configuration-common.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 48af76a79a0..e27348b9455 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1223,14 +1223,15 @@ self: super: { tasty-hedgehog = dontCheck super.tasty-hedgehog; # The latest release version is ancient. You really need this tool from git. - haskell-ci = addBuildDepend (overrideSrc (dontCheck super.haskell-ci) { - version = "2019.02.22-git"; - src = pkgs.fetchFromGitHub { - owner = "haskell-CI"; - repo = "haskell-ci"; - rev = "3a861aa7d6099296a9ac1003c7218e3ed831ca8c"; - sha256 = "0hwfg3ab5mh3xml3nlabbr1x8bhg26gw6sxn8bgb8bh6r0ccq9pi"; - }; - }) (with self; [base-compat generic-lens microlens optparse-applicative ShellCheck]); + haskell-ci = generateOptparseApplicativeCompletion "haskell-ci" + (addBuildDepend (overrideSrc (dontCheck super.haskell-ci) { + version = "2019.02.22-git"; + src = pkgs.fetchFromGitHub { + owner = "haskell-CI"; + repo = "haskell-ci"; + rev = "3a861aa7d6099296a9ac1003c7218e3ed831ca8c"; + sha256 = "0hwfg3ab5mh3xml3nlabbr1x8bhg26gw6sxn8bgb8bh6r0ccq9pi"; + }; + }) (with self; [base-compat generic-lens microlens optparse-applicative ShellCheck])); } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super