nixpkgs/pkgs/applications/altcoins/go-ethereum.nix

24 lines
626 B
Nix
Raw Normal View History

2017-07-05 15:27:28 +02:00
{ stdenv, lib, clang, buildGoPackage, fetchgit }:
2016-07-21 01:33:39 +02:00
2017-07-05 15:27:28 +02:00
buildGoPackage rec {
2016-07-21 01:33:39 +02:00
name = "go-ethereum-${version}";
2017-07-05 15:27:28 +02:00
version = "1.6.6";
2016-07-21 01:33:39 +02:00
rev = "refs/tags/v${version}";
goPackagePath = "github.com/ethereum/go-ethereum";
2017-07-05 15:27:28 +02:00
buildInputs = [ clang ];
preBuild = "export CC=clang";
2016-07-21 01:33:39 +02:00
src = fetchgit {
inherit rev;
url = "https://${goPackagePath}";
2017-07-05 15:27:28 +02:00
sha256 = "066s7fp9pbyq670xwnib4p7zaxs941r9kpvj2hm6bkr28yrpvp1a";
2016-07-21 01:33:39 +02:00
};
meta = {
homepage = "https://ethereum.github.io/go-ethereum/";
description = "Official golang implementation of the Ethereum protocol";
license = with lib.licenses; [ lgpl3 gpl3 ];
};
}