From 398d3ddc1b4edffc833cb1e1dbdf28a75d8ec352 Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Wed, 20 Jul 2016 19:33:39 -0400 Subject: go-ethereum: init at 1.4.7 (#16353) --- pkgs/applications/altcoins/default.nix | 2 ++ pkgs/applications/altcoins/go-ethereum.nix | 34 ++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 38 insertions(+) create mode 100644 pkgs/applications/altcoins/go-ethereum.nix diff --git a/pkgs/applications/altcoins/default.nix b/pkgs/applications/altcoins/default.nix index 0b0e42699edf..8e25f01c1bda 100644 --- a/pkgs/applications/altcoins/default.nix +++ b/pkgs/applications/altcoins/default.nix @@ -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; }; diff --git a/pkgs/applications/altcoins/go-ethereum.nix b/pkgs/applications/altcoins/go-ethereum.nix new file mode 100644 index 000000000000..3beb38e0d2dd --- /dev/null +++ b/pkgs/applications/altcoins/go-ethereum.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cee4c71db818..5a63cfe2af41 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; }; -- cgit 1.4.1