@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, buildGoPackage, git, which }:
1+{ stdenv, fetchFromGitHub, buildGoPackage, git, which, removeReferencesTo, go }:
22
33buildGoPackage rec {
44 pname = "quorum";
@@ -25,6 +25,12 @@ buildGoPackage rec {
2525 cp -v build/bin/geth build/bin/bootnode build/bin/swarm $out/bin
2626 '';
2727
28+ # fails with `GOFLAGS=-trimpath`
29+ allowGoReference = true;
30+ preFixup = ''
31+ find $out -type f -exec ${removeReferencesTo}/bin/remove-references-to -t ${go} '{}' +
32+ '';
33+
2834 meta = with stdenv.lib; {
2935 description = "A permissioned implementation of Ethereum supporting data privacy";
3036 homepage = "https://www.goquorum.com/";