@@ -2,6 +2,7 @@
22, cmake, xz, which, autoconf
33, ncurses6, libedit, libunwind
44, installShellFiles
5+, removeReferencesTo, go
56}:
67
78let
@@ -53,6 +54,12 @@ buildGoPackage rec {
5354
5455 outputs = [ "out" "man" ];
5556
57+ # fails with `GOFLAGS=-trimpath`
58+ allowGoReference = true;
59+ preFixup = ''
60+ find $out -type f -exec ${removeReferencesTo}/bin/remove-references-to -t ${go} '{}' +
61+ '';
62+
5663 meta = with stdenv.lib; {
5764 homepage = "https://www.cockroachlabs.com";
5865 description = "A scalable, survivable, strongly-consistent SQL database";