about summary refs log tree commit diff
path: root/pkgs/tools/text/vgrep
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2020-10-31 21:22:09 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-10-31 22:00:22 +1000
commitf28c4a120f5cacdad318782ccdd5b3599cea7e65 (patch)
treedad5166e179b26d920a3c63b4309876c38f646d6 /pkgs/tools/text/vgrep
parent1ecc5c7760b6961327377f2473db2538359da358 (diff)
vgrep: 2.4.0 -> 2.5.0
https://github.com/vrothberg/vgrep/releases/tag/v2.5.0
Diffstat (limited to 'pkgs/tools/text/vgrep')
-rw-r--r--pkgs/tools/text/vgrep/default.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/tools/text/vgrep/default.nix b/pkgs/tools/text/vgrep/default.nix
index 12880b2e4eca9..c51fce43467ed 100644
--- a/pkgs/tools/text/vgrep/default.nix
+++ b/pkgs/tools/text/vgrep/default.nix
@@ -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";