diff options
author | adisbladis <adisbladis@gmail.com> | 2018-07-11 22:43:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-11 22:43:27 +0800 |
commit | c7af2af4556f77d4a6801a77abe5fec70fd39647 (patch) | |
tree | 564a06433288503e2e7d929fa61ea1b91a14539d | |
parent | e1b8e8a40c5bb88fac0a37aaab9a2568894e5c66 (diff) | |
parent | eb31dc6316e2524a50595bb40cb5cc156261756f (diff) | |
download | nixlib-c7af2af4556f77d4a6801a77abe5fec70fd39647.tar nixlib-c7af2af4556f77d4a6801a77abe5fec70fd39647.tar.gz nixlib-c7af2af4556f77d4a6801a77abe5fec70fd39647.tar.bz2 nixlib-c7af2af4556f77d4a6801a77abe5fec70fd39647.tar.lz nixlib-c7af2af4556f77d4a6801a77abe5fec70fd39647.tar.xz nixlib-c7af2af4556f77d4a6801a77abe5fec70fd39647.tar.zst nixlib-c7af2af4556f77d4a6801a77abe5fec70fd39647.zip |
Merge pull request #43328 from adisbladis/buildGoPackage-nosrc
buildGoPackage: Dont copy sources to $out
-rw-r--r-- | pkgs/applications/altcoins/go-ethereum.nix | 11 | ||||
-rw-r--r-- | pkgs/development/go-modules/generic/default.nix | 9 |
2 files changed, 0 insertions, 20 deletions
diff --git a/pkgs/applications/altcoins/go-ethereum.nix b/pkgs/applications/altcoins/go-ethereum.nix index 74d38b59fc23..79c8e0dfde8a 100644 --- a/pkgs/applications/altcoins/go-ethereum.nix +++ b/pkgs/applications/altcoins/go-ethereum.nix @@ -12,17 +12,6 @@ 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"; diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 77c2687e2911..bd047da4c919 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -176,15 +176,6 @@ go.stdenv.mkDerivation ( installPhase = args.installPhase or '' runHook preInstall - mkdir -p $out - pushd "$NIX_BUILD_TOP/go" - while read f; do - echo "$f" | grep -q '^./\(src\|pkg/[^/]*\)/${goPackagePath}' || continue - mkdir -p "$(dirname "$out/share/go/$f")" - cp "$NIX_BUILD_TOP/go/$f" "$out/share/go/$f" - done < <(find . -type f) - popd - mkdir -p $bin dir="$NIX_BUILD_TOP/go/bin" [ -e "$dir" ] && cp -r $dir $bin |