pgcenter: add buildFlagsArray
This commit is contained in:
parent
a7d4a00d72
commit
b21a92e921
1 changed files with 8 additions and 0 deletions
|
@ -13,6 +13,14 @@ buildGoModule rec {
|
||||||
|
|
||||||
vendorSha256 = "sha256-9hYiyZ34atmSL7JvuXyiGU7HR4E6qN7bGZlyU+hP+FU=";
|
vendorSha256 = "sha256-9hYiyZ34atmSL7JvuXyiGU7HR4E6qN7bGZlyU+hP+FU=";
|
||||||
|
|
||||||
|
subPackages = [ "cmd" ];
|
||||||
|
|
||||||
|
buildFlagsArray = [ "-ldflags=-w -s -X main.gitTag=${src.rev} -X main.gitCommit=${src.rev} -X main.gitBranch=master" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mv $out/bin/cmd $out/bin/pgcenter
|
||||||
|
'';
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue