mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
go1.5: Remove the bootstrap as it is unneeded
This commit is contained in:
parent
500f871d45
commit
645709eaa5
@ -11,12 +11,6 @@ let
|
|||||||
find $out -name "*.c" -delete
|
find $out -name "*.c" -delete
|
||||||
cp -rf $out/bin/* $out/share/go/bin/
|
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
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -112,11 +106,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
while read file; do
|
rm -r $out/share/go/pkg/bootstrap
|
||||||
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)
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
|
Loading…
Reference in New Issue
Block a user