Skip to content

Commit

Permalink
buildGoPackage: Dont copy sources to $out
Browse files Browse the repository at this point in the history
Some sources are quite large and they don't seem to offer much value
  • Loading branch information
adisbladis committed Jul 11, 2018
1 parent 1539167 commit e95f17e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkgs/development/go-modules/generic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e95f17e

Please sign in to comment.