Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
839 B
Nix
47 lines
839 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
go-md2man,
|
|
installShellFiles,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "vgrep";
|
|
version = "2.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vrothberg";
|
|
repo = "vgrep";
|
|
rev = "v${version}";
|
|
hash = "sha256-OQjuNRuzFluZLssM+q+WpoRncdJMj6Sl/A+mUZA7UpI=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
go-md2man
|
|
installShellFiles
|
|
];
|
|
|
|
postBuild = ''
|
|
sed -i '/SHELL= /d' Makefile
|
|
make docs
|
|
installManPage docs/*.[1-9]
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "User-friendly pager for grep/git-grep/ripgrep";
|
|
mainProgram = "vgrep";
|
|
homepage = "https://github.com/vrothberg/vgrep";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|