pgcenter: add buildFlagsArray

This commit is contained in:
Mario Rodas 2021-02-14 06:00:18 +00:00
parent a7d4a00d72
commit b21a92e921

View file

@ -13,6 +13,14 @@ buildGoModule rec {
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;
meta = with lib; {