nixpkgs/pkgs/applications/altcoins/go-ethereum.nix

32 lines
975 B
Nix
Raw Normal View History

2017-09-05 07:24:04 +00:00
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
2016-07-20 23:33:39 +00:00
2017-07-05 13:27:28 +00:00
buildGoPackage rec {
2016-07-20 23:33:39 +00:00
name = "go-ethereum-${version}";
2017-09-05 07:24:04 +00:00
version = "1.6.7";
2016-07-20 23:33:39 +00:00
goPackagePath = "github.com/ethereum/go-ethereum";
2017-09-05 07:24:04 +00:00
# Fixes Cgo related build failures (see https://github.com/NixOS/nixpkgs/issues/25959 )
hardeningDisable = [ "fortify" ];
2016-07-20 23:33:39 +00:00
2017-09-05 07:24:04 +00:00
src = fetchFromGitHub {
owner = "ethereum";
repo = "go-ethereum";
rev = "v${version}";
sha256 = "19cq0pmif4y33v34jzvam4mcszl8vf2saf2gzfz01l4x1iv4hf1r";
2016-07-20 23:33:39 +00:00
};
2017-09-05 07:24:04 +00:00
# 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
'';
2016-07-20 23:33:39 +00:00
meta = {
homepage = https://ethereum.github.io/go-ethereum/;
2016-07-20 23:33:39 +00:00
description = "Official golang implementation of the Ethereum protocol";
license = with lib.licenses; [ lgpl3 gpl3 ];
};
}