@@ -1,31 +1,20 @@
1−{ stdenv, lib, go, fetchgit }:
1+{ stdenv, lib, clang, buildGoPackage, fetchgit }:
3−stdenv.mkDerivation rec {
3+buildGoPackage rec {
4 name = "go-ethereum-${version}";
4 name = "go-ethereum-${version}";
5− version = "1.4.7";
5+ version = "1.6.6";
6 rev = "refs/tags/v${version}";
6 rev = "refs/tags/v${version}";
7 goPackagePath = "github.com/ethereum/go-ethereum";
7 goPackagePath = "github.com/ethereum/go-ethereum";
9− buildInputs = [ go ];
9+ buildInputs = [ clang ];
10+ preBuild = "export CC=clang";
11 src = fetchgit {
12 src = fetchgit {
12 inherit rev;
13 inherit rev;
13 url = "https://${goPackagePath}";
14 url = "https://${goPackagePath}";
14− sha256 = "19q518kxkvrr44cvsph4wv3lr6ivqsckz1f22r62932s3sq6gyd8";
15+ sha256 = "066s7fp9pbyq670xwnib4p7zaxs941r9kpvj2hm6bkr28yrpvp1a";
18− export GOROOT=$(mktemp -d --suffix=-goroot)
19− ln -sv ${go}/share/go/* $GOROOT
20− ln -svf ${go}/bin $GOROOT
26− cp -v build/bin/* $out/bin
30 homepage = "https://ethereum.github.io/go-ethereum/";
19 homepage = "https://ethereum.github.io/go-ethereum/";
31 description = "Official golang implementation of the Ethereum protocol";
20 description = "Official golang implementation of the Ethereum protocol";