git.iko.soy/typeable/nixpkgs
on master help sign in
go-ethereum: Fix libusb segmentation faults on Darwin
commitec331755d349494b543fcedca01951ac60994bbf authoradisbladis <adis@blad.is> dateTue 3 Oct 2017, 10:13 (9 years ago) parentcb3d443
2 files changed+10−3
pkgs/applications/altcoins/default.nix+5−2 pkgs/applications/altcoins/go-ethereum.nix+5−1
pkgs/applications/altcoins/default.nix+5−2
@@ -1,4 +1,4 @@
1−{ callPackage, boost155, boost162, boost163, openssl_1_1_0, haskellPackages }:
1+{ callPackage, boost155, boost162, boost163, openssl_1_1_0, haskellPackages, darwin }:
22
33rec {
44
@@ -26,7 +26,10 @@ rec {
2626 dogecoind = callPackage ./dogecoin.nix { withGui = false; };
2727
2828 freicoin = callPackage ./freicoin.nix { boost = boost155; };
29− go-ethereum = callPackage ./go-ethereum.nix { };
29+ go-ethereum = callPackage ./go-ethereum.nix {
30+ inherit (darwin) libobjc;
31+ inherit (darwin.apple_sdk.frameworks) IOKit;
32+ };
3033 go-ethereum-classic = callPackage ./go-ethereum-classic { };
3134
3235 hivemind = callPackage ./hivemind.nix { withGui = true; };
pkgs/applications/altcoins/go-ethereum.nix+5−1
@@ -1,10 +1,14 @@
1−{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
1+{ stdenv, lib, buildGoPackage, fetchFromGitHub, libobjc, IOKit }:
22
33buildGoPackage rec {
44 name = "go-ethereum-${version}";
55 version = "1.7.0";
66 goPackagePath = "github.com/ethereum/go-ethereum";
77
8+ # Fix for usb-related segmentation faults on darwin
9+ propagatedBuildInputs =
10+ stdenv.lib.optionals stdenv.isDarwin [ libobjc IOKit ];
11+
812 # Fixes Cgo related build failures (see https://github.com/NixOS/nixpkgs/issues/25959 )
913 hardeningDisable = [ "fortify" ];
1014