From b6595ab614a2ea69305c35cf6d11bc8694b9289e Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 16 May 2021 09:52:53 +0300 Subject: [PATCH] pistol: 0.2.0 -> 0.2.1 --- pkgs/tools/misc/pistol/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/pistol/default.nix b/pkgs/tools/misc/pistol/default.nix index b0a3d2d8cade..52c83abdf688 100644 --- a/pkgs/tools/misc/pistol/default.nix +++ b/pkgs/tools/misc/pistol/default.nix @@ -2,17 +2,19 @@ , buildGoModule , fetchFromGitHub , file +, installShellFiles +, asciidoctor }: buildGoModule rec { pname = "pistol"; - version = "0.2.0"; + version = "0.2.1"; src = fetchFromGitHub { owner = "doronbehar"; repo = pname; rev = "v${version}"; - sha256 = "sha256-c85XF1Glg6A7utPfXOv4LBesJy9+ErE2B+DO243mMhg="; + sha256 = "sha256-NUHk48P3kUx+e9BR9k9K/VaHnbZ6Do6RRf1S0974sO8="; }; vendorSha256 = "sha256-n98cjXsgg2w3shbZPnk3g7mBbzV5Tc3jd9ZtiRk1KUM="; @@ -24,6 +26,14 @@ buildGoModule rec { buildInputs = [ file ]; + nativeBuildInputs = [ + installShellFiles + asciidoctor + ]; + postBuild = '' + asciidoctor -b manpage -d manpage README.adoc + installManPage pistol.1 + ''; buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];