git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #27149 from dbrock/go-ethereum

go-ethereum: 1.4.7 -> 1.6.6

commitacde126002ccacb74e6bb68ef48022ec098b122a authorJörg Thalheim <Mic92@users.noreply.github.com> dateFri 7 Jul 2017, 11:39 (9 years ago) parentf96e4ed69a8564
1 file changed+6−17
pkgs/applications/altcoins/go-ethereum.nix+6−17
pkgs/applications/altcoins/go-ethereum.nix+6−17
@@ -1,31 +1,20 @@
1−{ stdenv, lib, go, fetchgit }:
1+{ stdenv, lib, clang, buildGoPackage, fetchgit }:
22
3−stdenv.mkDerivation rec {
3+buildGoPackage rec {
44 name = "go-ethereum-${version}";
5− version = "1.4.7";
5+ version = "1.6.6";
66 rev = "refs/tags/v${version}";
77 goPackagePath = "github.com/ethereum/go-ethereum";
88
9− buildInputs = [ go ];
9+ buildInputs = [ clang ];
10+ preBuild = "export CC=clang";
1011
1112 src = fetchgit {
1213 inherit rev;
1314 url = "https://${goPackagePath}";
14− sha256 = "19q518kxkvrr44cvsph4wv3lr6ivqsckz1f22r62932s3sq6gyd8";
15+ sha256 = "066s7fp9pbyq670xwnib4p7zaxs941r9kpvj2hm6bkr28yrpvp1a";
1516 };
1617
17− buildPhase = ''
18− export GOROOT=$(mktemp -d --suffix=-goroot)
19− ln -sv ${go}/share/go/* $GOROOT
20− ln -svf ${go}/bin $GOROOT
21− make all
22− '';
23−
24− installPhase = ''
25− mkdir -p $out/bin
26− cp -v build/bin/* $out/bin
27− '';
28−
2918 meta = {
3019 homepage = "https://ethereum.github.io/go-ethereum/";
3120 description = "Official golang implementation of the Ethereum protocol";