go-ethereum: init at 1.4.7 (#16353)

This commit is contained in:
Chris Martin 2016-07-20 19:33:39 -04:00 committed by Rok Garbas
parent 227bf69b00
commit 398d3ddc1b
3 changed files with 38 additions and 0 deletions

View File

@ -16,6 +16,8 @@ rec {
dogecoin = callPackage ./dogecoin.nix { withGui = true; };
dogecoind = callPackage ./dogecoin.nix { withGui = false; };
go-ethereum = callPackage ./go-ethereum.nix { };
litecoin = callPackage ./litecoin.nix { withGui = true; };
litecoind = callPackage ./litecoin.nix { withGui = false; };

View File

@ -0,0 +1,34 @@
{ stdenv, lib, go, fetchgit }:
stdenv.mkDerivation rec {
name = "go-ethereum-${version}";
version = "1.4.7";
rev = "refs/tags/v${version}";
goPackagePath = "github.com/ethereum/go-ethereum";
buildInputs = [ go ];
src = fetchgit {
inherit rev;
url = "https://${goPackagePath}";
sha256 = "19q518kxkvrr44cvsph4wv3lr6ivqsckz1f22r62932s3sq6gyd8";
};
buildPhase = ''
export GOROOT=$(mktemp -d --suffix=-goroot)
ln -sv ${go}/share/go/* $GOROOT
ln -svf ${go}/bin $GOROOT
make all
'';
installPhase = ''
mkdir -p $out/bin
cp -v build/bin/* $out/bin
'';
meta = {
homepage = "https://ethereum.github.io/go-ethereum/";
description = "Official golang implementation of the Ethereum protocol";
license = with lib.licenses; [ lgpl3 gpl3 ];
};
}

View File

@ -12207,6 +12207,8 @@ in
bitcoin = self.altcoins.bitcoin;
bitcoin-xt = self.altcoins.bitcoin-xt;
go-ethereum = self.altcoins.go-ethereum;
aumix = callPackage ../applications/audio/aumix {
gtkGUI = false;
};