tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
go-ethereum: Dont install sources in $out
adisbladis
8 years ago
0b0b5a5e
a35d106d
+11
1 changed file
expand all
collapse all
unified
split
pkgs
applications
altcoins
go-ethereum.nix
+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
15
+
# Only install binaries in $out, source is not interesting and takes ~50M
16
16
+
outputs = [ "out" ];
17
17
+
preFixup = ''
18
18
+
export bin="''${out}"
19
19
+
'';
20
20
+
installPhase = ''
21
21
+
mkdir -p $out/bin $out
22
22
+
dir="$NIX_BUILD_TOP/go/bin"
23
23
+
[ -e "$dir" ] && cp -r $dir $out
24
24
+
'';
25
25
+
15
26
src = fetchFromGitHub {
16
27
owner = "ethereum";
17
28
repo = "go-ethereum";