pistol: 0.2.0 -> 0.2.1
This commit is contained in:
parent
8599a6c417
commit
b6595ab614
|
@ -2,17 +2,19 @@
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, file
|
, file
|
||||||
|
, installShellFiles
|
||||||
|
, asciidoctor
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "pistol";
|
pname = "pistol";
|
||||||
version = "0.2.0";
|
version = "0.2.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "doronbehar";
|
owner = "doronbehar";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-c85XF1Glg6A7utPfXOv4LBesJy9+ErE2B+DO243mMhg=";
|
sha256 = "sha256-NUHk48P3kUx+e9BR9k9K/VaHnbZ6Do6RRf1S0974sO8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-n98cjXsgg2w3shbZPnk3g7mBbzV5Tc3jd9ZtiRk1KUM=";
|
vendorSha256 = "sha256-n98cjXsgg2w3shbZPnk3g7mBbzV5Tc3jd9ZtiRk1KUM=";
|
||||||
|
@ -24,6 +26,14 @@ buildGoModule rec {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
file
|
file
|
||||||
];
|
];
|
||||||
|
nativeBuildInputs = [
|
||||||
|
installShellFiles
|
||||||
|
asciidoctor
|
||||||
|
];
|
||||||
|
postBuild = ''
|
||||||
|
asciidoctor -b manpage -d manpage README.adoc
|
||||||
|
installManPage pistol.1
|
||||||
|
'';
|
||||||
|
|
||||||
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
|
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue