Merge pull request #137103 from marsam/age-manpages

age: install manpages
This commit is contained in:
Fabian Affolter 2021-09-09 00:26:24 +02:00 committed by GitHub
commit d65d7b46b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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