git.iko.soy/typeable/nixpkgs
on master help sign in
quorum: workaround trimpath build failure
commit702c242558200447ce3d34ed256eac3741f4fd98 authorzowoq <59103226+zowoq@users.noreply.github.com> dateMon 2 Nov 2020, 15:24 (6 years ago) parent11c19be
1 file changed+7−1
pkgs/applications/blockchains/quorum.nix+7−1
pkgs/applications/blockchains/quorum.nix+7−1
@@ -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/";