cockroachdb: workaround trimpath build failure

This commit is contained in:
zowoq 2020-11-02 15:24:25 +10:00
parent 702c242558
commit 87aa3671e8

View File

@ -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";