miniflux: install manpage

This commit is contained in:
Mario Rodas 2020-05-25 18:00:00 -05:00
parent 78e5bcf9ae
commit fed98249ba
No known key found for this signature in database
GPG key ID: 325649BCA6D53027

View file

@ -1,4 +1,4 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }:
buildGoPackage rec {
pname = "miniflux";
@ -13,14 +13,17 @@ buildGoPackage rec {
goPackagePath = "miniflux.app";
nativeBuildInputs = [ installShellFiles ];
doCheck = true;
buildFlagsArray = ''
-ldflags=-X miniflux.app/version.Version=${version}
-ldflags=-s -w -X miniflux.app/version.Version=${version}
'';
postInstall = ''
mv $out/bin/miniflux.app $out/bin/miniflux
installManPage go/src/${goPackagePath}/miniflux.1
'';
meta = with stdenv.lib; {