1 { lib, buildGoModule, fetchFromGitHub, fetchpatch, installShellFiles }:
7 src = fetchFromGitHub {
11 hash = "sha256-IZ4Hwg5NzdSXtrIDNxtkzquuiHQOmLV1HSx8gpwE/i0=";
14 vendorHash = "sha256-y883la4R4jhsS99/ohgBC9SHggybAq9hreda6quG3IY=";
17 # Add Go Modules support
19 url = "https://github.com/svent/sift/commit/b56fb3d0fd914c8a6c08b148e15dd8a07c7d8a5a.patch";
20 hash = "sha256-mFCEpkgQ8XDPRQ3yKDZ5qY9tKGSuHs+RnhMeAlx33Ng=";
24 nativeBuildInputs = [ installShellFiles ];
26 ldflags = [ "-s" "-w" ];
29 installShellCompletion --cmd sift --bash sift-completion.bash
33 description = "Fast and powerful alternative to grep";
35 homepage = "https://sift-tool.org";
36 maintainers = with maintainers; [ viraptor ];
37 license = licenses.gpl3;