git.iko.soy/typeable/nixpkgs
on master help sign in
go-ethereum: 1.4.7 -> 1.6.6
69a8564Daniel Brockman
pkgs/applications/altcoins/go-ethereum.nix+6−17
@@ -1,31 +1,20 @@
1−{ stdenv, lib, go, fetchgit }:
1+{ stdenv, lib, clang, buildGoPackage, fetchgit }:
2
2
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";
8
8
9− buildInputs = [ go ];
9+ buildInputs = [ clang ];
10+ preBuild = "export CC=clang";
10
11
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";
15 };
16 };
16
17
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−
29 meta = {
18 meta = {
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";