Skip to content

Commit

Permalink
vgrep: 2.4.0 -> 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zowoq committed Oct 31, 2020
1 parent 1ecc5c7 commit f28c4a1
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pkgs/tools/text/vgrep/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, go-md2man, installShellFiles }:

buildGoModule rec {
pname = "vgrep";
version = "2.4.0";
version = "2.5.0";

src = fetchFromGitHub {
owner = "vrothberg";
repo = pname;
rev = "v${version}";
sha256 = "109j04my2xib8m52a0337996a27nvfgzackpg20zs3nzn66dmvb7";
sha256 = "1waxp66286q325avvsq58s8qkfjqa39s5p8c3z59scpm0244nr80";
};

vendorSha256 = null;

buildFlagsArray = [ "-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";
Expand Down

0 comments on commit f28c4a1

Please sign in to comment.