nixpkgs-suyu/pkgs/tools/text/sift/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
758 B
Nix
Raw Normal View History

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