3
0
Fork 0
forked from mirrors/nixpkgs

goPackages.tools: Make the build work with the go decoupling

This commit is contained in:
William A. Kennington III 2015-05-18 10:12:30 -07:00
parent e89f90cd33
commit 6eecaddced

View file

@ -122,12 +122,26 @@ let
name = "tools-${stdenv.lib.strings.substring 0 7 rev}";
goPackagePath = "golang.org/x/tools";
preConfigure = ''
# Make the builtin tools available here
mkdir -p $out/bin
eval $(go env | grep GOTOOLDIR)
find $GOTOOLDIR -type f | while read x; do
ln -sv "$x" "$out/bin"
done
export GOTOOLDIR=$out/bin
'';
excludedPackages = "testdata";
src = fetchFromGitHub {
inherit rev;
owner = "golang";
repo = "tools";
sha256 = "0vq0l3pjhgsp97v6ndlr3jcs029r5zilwai30snwfq74s580sriq";
};
buildInputs = [ net ];
};
## THIRD PARTY