2022-05-05 11:07:46 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, installShellFiles }:
|
2016-06-25 17:57:11 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sift";
|
2018-02-14 21:34:31 +00:00
|
|
|
version = "0.9.0";
|
2016-06-25 17:57:11 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/svent/sift";
|
|
|
|
|
2022-05-05 11:07:46 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2016-06-25 17:57:11 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "svent";
|
|
|
|
repo = "sift";
|
2018-02-14 21:34:31 +00:00
|
|
|
sha256 = "0bgy0jf84z1c3msvb60ffj4axayfchdkf0xjnsbx9kad1v10g7i1";
|
2016-06-25 17:57:11 +00:00
|
|
|
};
|
|
|
|
|
2022-05-05 11:07:46 +00:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd sift --bash go/src/github.com/svent/sift/sift-completion.bash
|
|
|
|
'';
|
|
|
|
|
2016-09-10 10:04:13 +00:00
|
|
|
goDeps = ./deps.nix;
|
2016-06-25 17:57:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "A fast and powerful alternative to grep";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://sift-tool.org";
|
2022-05-05 11:08:03 +00:00
|
|
|
maintainers = with maintainers; [ carlsverre viraptor ];
|
2016-06-25 17:57:11 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|