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 { buildGoModule rec {
pname = "go-ethereum"; pname = "go-ethereum";
@ -30,6 +30,8 @@ buildGoModule rec {
"cmd/wnode" "cmd/wnode"
]; ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
# Fix for usb-related segmentation faults on darwin # Fix for usb-related segmentation faults on darwin
propagatedBuildInputs = propagatedBuildInputs =
stdenv.lib.optionals stdenv.isDarwin [ libobjc IOKit ]; stdenv.lib.optionals stdenv.isDarwin [ libobjc IOKit ];

View File

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