@@ -1,22 +1,39 @@
1−{ stdenv, buildGoPackage, fetchFromGitHub, libobjc, IOKit }:
1+{ stdenv, buildGoModule, fetchFromGitHub, libobjc, IOKit }:
22
3−buildGoPackage rec {
3+buildGoModule rec {
44 pname = "go-ethereum";
5− version = "1.9.7";
6−
7− goPackagePath = "github.com/ethereum/go-ethereum";
8−
9− # Fix for usb-related segmentation faults on darwin
10− propagatedBuildInputs =
11− stdenv.lib.optionals stdenv.isDarwin [ libobjc IOKit ];
5+ version = "1.9.8";
126
137 src = fetchFromGitHub {
148 owner = "ethereum";
159 repo = pname;
1610 rev = "v${version}";
17− sha256 = "07110dj91wmkpwz7iy0lmxx3y9wjxjrhk3rhkfdil74cxm0wkkn2";
11+ sha256 = "0v4hchy6h3282347ps11iv7klcr60bmghha78rnp0iqpx2k8pqb4";
1812 };
1913
14+ modSha256 = "1l10p6a4qq77pfx7jmipkcg2qg6w3hg83q5a37yid3apily2scfa";
15+
16+ subPackages = [
17+ "cmd/abigen"
18+ "cmd/bootnode"
19+ "cmd/checkpoint-admin"
20+ "cmd/clef"
21+ "cmd/devp2p"
22+ "cmd/ethkey"
23+ "cmd/evm"
24+ "cmd/faucet"
25+ "cmd/geth"
26+ "cmd/p2psim"
27+ "cmd/puppeth"
28+ "cmd/rlpdump"
29+ "cmd/utils"
30+ "cmd/wnode"
31+ ];
32+
33+ # Fix for usb-related segmentation faults on darwin
34+ propagatedBuildInputs =
35+ stdenv.lib.optionals stdenv.isDarwin [ libobjc IOKit ];
36+
2037 meta = with stdenv.lib; {
2138 homepage = "https://geth.ethereum.org/";
2239 description = "Official golang implementation of the Ethereum protocol";