3
0
Fork 0
forked from mirrors/nixpkgs

quorum: workaround trimpath build failure

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

View file

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