go-ethereum: Dont install sources in $out

+11
+11
pkgs/applications/altcoins/go-ethereum.nix
··· 12 12 # Fixes Cgo related build failures (see https://github.com/NixOS/nixpkgs/issues/25959 ) 13 13 hardeningDisable = [ "fortify" ]; 14 14 15 + # Only install binaries in $out, source is not interesting and takes ~50M 16 + outputs = [ "out" ]; 17 + preFixup = '' 18 + export bin="''${out}" 19 + ''; 20 + installPhase = '' 21 + mkdir -p $out/bin $out 22 + dir="$NIX_BUILD_TOP/go/bin" 23 + [ -e "$dir" ] && cp -r $dir $out 24 + ''; 25 + 15 26 src = fetchFromGitHub { 16 27 owner = "ethereum"; 17 28 repo = "go-ethereum";