From b21a92e9211b6322a26ce73e4b8528ce00d147ee Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 14 Feb 2021 06:00:18 +0000 Subject: [PATCH] pgcenter: add buildFlagsArray --- pkgs/tools/misc/pgcenter/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/tools/misc/pgcenter/default.nix b/pkgs/tools/misc/pgcenter/default.nix index d473a53c6f9d..970a5bc82653 100644 --- a/pkgs/tools/misc/pgcenter/default.nix +++ b/pkgs/tools/misc/pgcenter/default.nix @@ -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; {