3
0
Fork 0
forked from mirrors/nixpkgs

age: install manpages

This commit is contained in:
Mario Rodas 2021-09-08 04:20:00 +00:00
parent 7136060765
commit 78c60fba0a

View file

@ -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