forked from mirrors/nixpkgs
age: install manpages
This commit is contained in:
parent
7136060765
commit
78c60fba0a
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "age";
|
||||
|
@ -13,9 +13,15 @@ buildGoModule rec {
|
|||
};
|
||||
|
||||
ldflags = [
|
||||
"-X main.Version=${version}"
|
||||
"-s" "-w" "-X main.Version=${version}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
preInstall = ''
|
||||
installManPage doc/*.1
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
if [[ "$("$out/bin/${pname}" --version)" == "${version}" ]]; then
|
||||
|
|
Loading…
Reference in a new issue