3
0
Fork 0
forked from mirrors/nixpkgs

go-ethereum: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:11:00 -05:00
parent 33f90726c3
commit c058bc936d
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, buildGoModule, fetchFromGitHub, libobjc, IOKit }:
{ stdenv, buildGoModule, fetchFromGitHub, libobjc, IOKit, CoreServices }:
buildGoModule rec {
pname = "go-ethereum";
@ -30,6 +30,8 @@ buildGoModule rec {
"cmd/wnode"
];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
# Fix for usb-related segmentation faults on darwin
propagatedBuildInputs =
stdenv.lib.optionals stdenv.isDarwin [ libobjc IOKit ];

View file

@ -23045,7 +23045,7 @@ in
freicoin = callPackage ../applications/blockchains/freicoin.nix { boost = boost155; };
go-ethereum = callPackage ../applications/blockchains/go-ethereum.nix {
inherit (darwin) libobjc;
inherit (darwin.apple_sdk.frameworks) IOKit;
inherit (darwin.apple_sdk.frameworks) CoreServices IOKit;
};
ledger_agent = with python3Packages; toPythonApplication ledger_agent;