go1.5: Remove the bootstrap as it is unneeded

This commit is contained in:
William A. Kennington III 2015-08-28 16:29:22 -07:00
parent 500f871d45
commit 645709eaa5

View File

@ -11,12 +11,6 @@ let
find $out -name "*.c" -delete
cp -rf $out/bin/* $out/share/go/bin/
'';
removeReferences = [ go_1_4 ];
removeExpr = refs: lib.flip lib.concatMapStrings refs (ref: ''
| sed "s,${ref},$(echo "${ref}" | sed "s,$NIX_STORE/[^-]*,$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee,"),g" \
'');
in
stdenv.mkDerivation rec {
@ -112,11 +106,7 @@ stdenv.mkDerivation rec {
'';
preFixup = ''
while read file; do
cat $file ${removeExpr removeReferences} > $file.tmp
mv $file.tmp $file
chmod +x $file
done < <(find $out/share/go/pkg/bootstrap/bin -type f 2>/dev/null)
rm -r $out/share/go/pkg/bootstrap
'';
setupHook = ./setup-hook.sh;