diff options
author | Chris Martin <ch.martin@gmail.com> | 2016-07-20 19:33:39 -0400 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2016-07-21 01:33:39 +0200 |
commit | 398d3ddc1b4edffc833cb1e1dbdf28a75d8ec352 (patch) | |
tree | b053d591e1165b59a21082a948ee1cb26da3d161 /pkgs/applications/altcoins | |
parent | 227bf69b004789b626af90a05f54f4368c85efb0 (diff) | |
download | nixlib-398d3ddc1b4edffc833cb1e1dbdf28a75d8ec352.tar nixlib-398d3ddc1b4edffc833cb1e1dbdf28a75d8ec352.tar.gz nixlib-398d3ddc1b4edffc833cb1e1dbdf28a75d8ec352.tar.bz2 nixlib-398d3ddc1b4edffc833cb1e1dbdf28a75d8ec352.tar.lz nixlib-398d3ddc1b4edffc833cb1e1dbdf28a75d8ec352.tar.xz nixlib-398d3ddc1b4edffc833cb1e1dbdf28a75d8ec352.tar.zst nixlib-398d3ddc1b4edffc833cb1e1dbdf28a75d8ec352.zip |
go-ethereum: init at 1.4.7 (#16353)
Diffstat (limited to 'pkgs/applications/altcoins')
-rw-r--r-- | pkgs/applications/altcoins/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/altcoins/go-ethereum.nix | 34 |
2 files changed, 36 insertions, 0 deletions
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 ]; + }; +} |