mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
go-ethereum: Fix libusb segmentation faults on Darwin
This commit is contained in:
parent
cb3d443787
commit
ec331755d3
@ -1,4 +1,4 @@
|
|||||||
{ callPackage, boost155, boost162, boost163, openssl_1_1_0, haskellPackages }:
|
{ callPackage, boost155, boost162, boost163, openssl_1_1_0, haskellPackages, darwin }:
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
|
|
||||||
@ -26,7 +26,10 @@ rec {
|
|||||||
dogecoind = callPackage ./dogecoin.nix { withGui = false; };
|
dogecoind = callPackage ./dogecoin.nix { withGui = false; };
|
||||||
|
|
||||||
freicoin = callPackage ./freicoin.nix { boost = boost155; };
|
freicoin = callPackage ./freicoin.nix { boost = boost155; };
|
||||||
go-ethereum = callPackage ./go-ethereum.nix { };
|
go-ethereum = callPackage ./go-ethereum.nix {
|
||||||
|
inherit (darwin) libobjc;
|
||||||
|
inherit (darwin.apple_sdk.frameworks) IOKit;
|
||||||
|
};
|
||||||
go-ethereum-classic = callPackage ./go-ethereum-classic { };
|
go-ethereum-classic = callPackage ./go-ethereum-classic { };
|
||||||
|
|
||||||
hivemind = callPackage ./hivemind.nix { withGui = true; };
|
hivemind = callPackage ./hivemind.nix { withGui = true; };
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub, libobjc, IOKit }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
name = "go-ethereum-${version}";
|
name = "go-ethereum-${version}";
|
||||||
version = "1.7.0";
|
version = "1.7.0";
|
||||||
goPackagePath = "github.com/ethereum/go-ethereum";
|
goPackagePath = "github.com/ethereum/go-ethereum";
|
||||||
|
|
||||||
|
# Fix for usb-related segmentation faults on darwin
|
||||||
|
propagatedBuildInputs =
|
||||||
|
stdenv.lib.optionals stdenv.isDarwin [ libobjc IOKit ];
|
||||||
|
|
||||||
# Fixes Cgo related build failures (see https://github.com/NixOS/nixpkgs/issues/25959 )
|
# Fixes Cgo related build failures (see https://github.com/NixOS/nixpkgs/issues/25959 )
|
||||||
hardeningDisable = [ "fortify" ];
|
hardeningDisable = [ "fortify" ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user