summary refs log tree commit diff
path: root/pkgs/applications/altcoins/go-ethereum.nix
blob: 7f7c3f304c22e69fe8284a643fa6de849469d1de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, lib, clang, buildGoPackage, fetchgit }:

buildGoPackage rec {
  name = "go-ethereum-${version}";
  version = "1.6.6";
  rev = "refs/tags/v${version}";
  goPackagePath = "github.com/ethereum/go-ethereum";

  buildInputs = [ clang ];
  preBuild = "export CC=clang";

  src = fetchgit {
    inherit rev;
    url = "https://${goPackagePath}";
    sha256 = "066s7fp9pbyq670xwnib4p7zaxs941r9kpvj2hm6bkr28yrpvp1a";
  };

  meta = {
    homepage = "https://ethereum.github.io/go-ethereum/";
    description = "Official golang implementation of the Ethereum protocol";
    license = with lib.licenses; [ lgpl3 gpl3 ];
  };
}