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