Skip to content

Commit

Permalink
go-ethereum: Dont install sources in $out
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Feb 23, 2018
1 parent a35d106 commit 0b0b5a5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/applications/altcoins/go-ethereum.nix
Expand Up @@ -12,6 +12,17 @@ buildGoPackage rec {
# Fixes Cgo related build failures (see https://github.com/NixOS/nixpkgs/issues/25959 )
hardeningDisable = [ "fortify" ];

# Only install binaries in $out, source is not interesting and takes ~50M
outputs = [ "out" ];
preFixup = ''
export bin="''${out}"
'';
installPhase = ''
mkdir -p $out/bin $out
dir="$NIX_BUILD_TOP/go/bin"
[ -e "$dir" ] && cp -r $dir $out
'';

src = fetchFromGitHub {
owner = "ethereum";
repo = "go-ethereum";
Expand Down

0 comments on commit 0b0b5a5

Please sign in to comment.