ets: use installManPage

Co-authored-by: Nikolay Korotkiy <sikmir@disroot.org>
This commit is contained in:
cameronfyfe 2022-01-16 16:28:16 -07:00
parent 645c499720
commit 9a9a5b4087

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "ets";
@ -17,13 +17,14 @@ buildGoModule rec {
ldflags = [ "-s" "-w" "-X main.version=v${version}-nixpkgs" ];
nativeBuildInputs = [ installShellFiles ];
preBuild = ''
rm -rf fixtures
'';
postInstall = ''
mkdir -p $out/share/man/man1
cp ets.1 $out/share/man/man1
installManPage ets.1
'';
doCheck = false;