mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
sift: add bash completion
This commit is contained in:
parent
c01480f0a3
commit
763a2d7b16
@ -1,4 +1,4 @@
|
||||
{ lib, buildGoPackage, fetchFromGitHub }:
|
||||
{ lib, buildGoPackage, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "sift";
|
||||
@ -7,6 +7,8 @@ buildGoPackage rec {
|
||||
|
||||
goPackagePath = "github.com/svent/sift";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "svent";
|
||||
@ -14,6 +16,10 @@ buildGoPackage rec {
|
||||
sha256 = "0bgy0jf84z1c3msvb60ffj4axayfchdkf0xjnsbx9kad1v10g7i1";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd sift --bash go/src/github.com/svent/sift/sift-completion.bash
|
||||
'';
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user