mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 13:19:10 +03:00
33 lines
780 B
Nix
33 lines
780 B
Nix
{ lib, buildGoModule, fetchFromGitHub, go-md2man, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "vgrep";
|
|
version = "2.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vrothberg";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "06rnmg6ljj4f1g602wdp2wy9v0m1m0sj6jl6wywyjl8grjqc3vac";
|
|
};
|
|
|
|
vendorSha256 = 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";
|
|
homepage = "https://github.com/vrothberg/vgrep";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|