From db545f4b125d5166f7b2ea0d66c624c72e474fd9 Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Tue, 10 May 2016 20:37:32 -0400 Subject: [PATCH] go-ethereum: init at 1.4.1 --- pkgs/top-level/go-packages.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index e040af2d3596..fca74bcdcc41 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -745,6 +745,22 @@ let sha256 = "1rmm1ky7irqypqjkk6qcd2n0xkzpaggdxql9dp9i9qci5rvvwwd4"; }; + ethereum = buildFromGitHub rec { + name = "ethereum"; + rev = "v1.4.1"; + goPackagePath = "github.com/ethereum/go-ethereum"; + owner = "ethereum"; + repo = "go-ethereum"; + sha256 = "0z6yzkk72g41dzqa52fizxqxqh349y1m9s3byfh9ixq5xy5fnjn3"; + preBuild = "export GOPATH=$GOPATH:$NIX_BUILD_TOP/go/src/${goPackagePath}/Godeps/_workspace"; + postBuild = "rm $NIX_BUILD_TOP/go/bin/*test"; + meta = with stdenv.lib; { + homepage = "https://ethereum.github.io/go-ethereum/"; + description = "Official golang implementation of the Ethereum protocol"; + license = with licenses; [ lgpl3 gpl3 ]; + }; + }; + exercism = buildFromGitHub { rev = "v2.2.1"; name = "exercism";