mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
Merge pull request #171649 from viraptor/sift-completion
This commit is contained in:
commit
f6068f8d48
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoPackage, fetchFromGitHub }:
|
{ lib, buildGoPackage, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
pname = "sift";
|
pname = "sift";
|
||||||
@ -7,6 +7,8 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
goPackagePath = "github.com/svent/sift";
|
goPackagePath = "github.com/svent/sift";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
inherit rev;
|
inherit rev;
|
||||||
owner = "svent";
|
owner = "svent";
|
||||||
@ -14,12 +16,16 @@ buildGoPackage rec {
|
|||||||
sha256 = "0bgy0jf84z1c3msvb60ffj4axayfchdkf0xjnsbx9kad1v10g7i1";
|
sha256 = "0bgy0jf84z1c3msvb60ffj4axayfchdkf0xjnsbx9kad1v10g7i1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --cmd sift --bash go/src/github.com/svent/sift/sift-completion.bash
|
||||||
|
'';
|
||||||
|
|
||||||
goDeps = ./deps.nix;
|
goDeps = ./deps.nix;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A fast and powerful alternative to grep";
|
description = "A fast and powerful alternative to grep";
|
||||||
homepage = "https://sift-tool.org";
|
homepage = "https://sift-tool.org";
|
||||||
maintainers = [ maintainers.carlsverre ];
|
maintainers = with maintainers; [ carlsverre viraptor ];
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user