nixpkgs/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 14:07:46 +03:00
{ lib, buildGoPackage, fetchFromGitHub, installShellFiles }:
buildGoPackage rec {
pname = "sift";
2018-02-15 00:34:31 +03:00
version = "0.9.0";
rev = "v${version}";
goPackagePath = "github.com/svent/sift";
2022-05-05 14:07:46 +03:00
nativeBuildInputs = [ installShellFiles ];
src = fetchFromGitHub {
inherit rev;
owner = "svent";
repo = "sift";
2018-02-15 00:34:31 +03:00
sha256 = "0bgy0jf84z1c3msvb60ffj4axayfchdkf0xjnsbx9kad1v10g7i1";
};
2022-05-05 14:07:46 +03: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 14:08:03 +03:00
maintainers = with maintainers; [ carlsverre viraptor ];
license = licenses.gpl3;
};
}