Skip to content

Commit

Permalink
go-ethereum: 1.6.6 -> 1.6.7
Browse files Browse the repository at this point in the history
(cherry picked from commit 1b709c9)
  • Loading branch information
adisbladis authored and Mic92 committed Sep 5, 2017
1 parent a8a33fe commit dbf7ed1
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions pkgs/applications/altcoins/go-ethereum.nix
@@ -1,20 +1,28 @@
{ stdenv, lib, clang, buildGoPackage, fetchgit }:
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
name = "go-ethereum-${version}";
version = "1.6.6";
rev = "refs/tags/v${version}";
version = "1.6.7";
goPackagePath = "github.com/ethereum/go-ethereum";

buildInputs = [ clang ];
preBuild = "export CC=clang";
# Fixes Cgo related build failures (see https://github.com/NixOS/nixpkgs/issues/25959 )
hardeningDisable = [ "fortify" ];

src = fetchgit {
inherit rev;
url = "https://${goPackagePath}";
sha256 = "066s7fp9pbyq670xwnib4p7zaxs941r9kpvj2hm6bkr28yrpvp1a";
src = fetchFromGitHub {
owner = "ethereum";
repo = "go-ethereum";
rev = "v${version}";
sha256 = "19cq0pmif4y33v34jzvam4mcszl8vf2saf2gzfz01l4x1iv4hf1r";
};

# Fix cyclic referencing on Darwin
postInstall = stdenv.lib.optionalString (stdenv.isDarwin) ''
for file in $bin/bin/*; do
# Not all files are referencing $out/lib so consider this step non-critical
install_name_tool -delete_rpath $out/lib $file || true
done
'';

meta = {
homepage = https://ethereum.github.io/go-ethereum/;
description = "Official golang implementation of the Ethereum protocol";
Expand Down

0 comments on commit dbf7ed1

Please sign in to comment.