summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authoradisbladis <adis@blad.is>2018-02-23 18:47:34 +0800
committeradisbladis <adis@blad.is>2018-02-23 18:47:45 +0800
commit0b0b5a5e2870676bd591ce85a86844eeb19e0399 (patch)
tree88871502caddb9924ff25cdef175da272d1ccffd /pkgs
parenta35d106d070a03a78d57b04f9bdb96faa10dcee0 (diff)
downloadnixlib-0b0b5a5e2870676bd591ce85a86844eeb19e0399.tar
nixlib-0b0b5a5e2870676bd591ce85a86844eeb19e0399.tar.gz
nixlib-0b0b5a5e2870676bd591ce85a86844eeb19e0399.tar.bz2
nixlib-0b0b5a5e2870676bd591ce85a86844eeb19e0399.tar.lz
nixlib-0b0b5a5e2870676bd591ce85a86844eeb19e0399.tar.xz
nixlib-0b0b5a5e2870676bd591ce85a86844eeb19e0399.tar.zst
nixlib-0b0b5a5e2870676bd591ce85a86844eeb19e0399.zip
go-ethereum: Dont install sources in $out
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/altcoins/go-ethereum.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/applications/altcoins/go-ethereum.nix b/pkgs/applications/altcoins/go-ethereum.nix
index f35213a085b1..18a9d043e189 100644
--- a/pkgs/applications/altcoins/go-ethereum.nix
+++ b/pkgs/applications/altcoins/go-ethereum.nix
@@ -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";