diff --git a/pkgs/servers/sql/cockroachdb/default.nix b/pkgs/servers/sql/cockroachdb/default.nix index 0ecbdab9ad6c..ab50cbb1d5cb 100644 --- a/pkgs/servers/sql/cockroachdb/default.nix +++ b/pkgs/servers/sql/cockroachdb/default.nix @@ -14,6 +14,11 @@ buildGoPackage rec { sha256 = "11camp588vsccxlc138l7x4qws2fj5wpx1177irzayqdng8dilx3"; }; + buildFlagsArray = '' + -ldflags= + -X github.com/cockroachdb/cockroach/build.tag=${version} + ''; + buildInputs = [ gcc ]; goDeps = ./deps.nix;