diff --git a/pkgs/servers/sql/cockroachdb/default.nix b/pkgs/servers/sql/cockroachdb/default.nix index 1822cf58a743..ee156e37173a 100644 --- a/pkgs/servers/sql/cockroachdb/default.nix +++ b/pkgs/servers/sql/cockroachdb/default.nix @@ -2,6 +2,7 @@ , cmake, xz, which, autoconf , ncurses6, libedit, libunwind , installShellFiles +, removeReferencesTo, go }: let @@ -53,6 +54,12 @@ buildGoPackage rec { outputs = [ "out" "man" ]; + # fails with `GOFLAGS=-trimpath` + allowGoReference = true; + preFixup = '' + find $out -type f -exec ${removeReferencesTo}/bin/remove-references-to -t ${go} '{}' + + ''; + meta = with stdenv.lib; { homepage = "https://www.cockroachlabs.com"; description = "A scalable, survivable, strongly-consistent SQL database";