go-ethereum: 1.6.6 -> 1.6.7

This commit is contained in:
adisbladis 2017-09-05 15:24:04 +08:00
parent 6f6a7aae8f
commit 1b709c981c
No known key found for this signature in database
GPG Key ID: ED58F95069B004F5

View File

@ -1,20 +1,28 @@
{ stdenv, lib, clang, buildGoPackage, fetchgit }: { stdenv, lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec { buildGoPackage rec {
name = "go-ethereum-${version}"; name = "go-ethereum-${version}";
version = "1.6.6"; version = "1.6.7";
rev = "refs/tags/v${version}";
goPackagePath = "github.com/ethereum/go-ethereum"; goPackagePath = "github.com/ethereum/go-ethereum";
buildInputs = [ clang ]; # Fixes Cgo related build failures (see https://github.com/NixOS/nixpkgs/issues/25959 )
preBuild = "export CC=clang"; hardeningDisable = [ "fortify" ];
src = fetchgit { src = fetchFromGitHub {
inherit rev; owner = "ethereum";
url = "https://${goPackagePath}"; repo = "go-ethereum";
sha256 = "066s7fp9pbyq670xwnib4p7zaxs941r9kpvj2hm6bkr28yrpvp1a"; 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 = { meta = {
homepage = https://ethereum.github.io/go-ethereum/; homepage = https://ethereum.github.io/go-ethereum/;
description = "Official golang implementation of the Ethereum protocol"; description = "Official golang implementation of the Ethereum protocol";