mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
go-1.6: fix the build
One of the test scripts dynamically creates and executes a bash script, which attempts to use `/usr/bin/env bash`. This patches the file to use the stdenv's shell instead. Otherwise, the only way this could have worked was by building go_1_6 outside of the sandbox.
This commit is contained in:
parent
18b35bd741
commit
0547fd247f
1 changed files with 5 additions and 0 deletions
|
@ -46,6 +46,11 @@ stdenv.mkDerivation rec {
|
|||
cd go
|
||||
patchShebangs ./ # replace /bin/bash
|
||||
|
||||
# This script produces another script at run time,
|
||||
# and thus it is not corrected by patchShebangs.
|
||||
substituteInPlace misc/cgo/testcarchive/test.bash \
|
||||
--replace '#!/usr/bin/env bash' '#!${stdenv.shell}'
|
||||
|
||||
# Disabling the 'os/http/net' tests (they want files not available in
|
||||
# chroot builds)
|
||||
rm src/net/{listen,parse}_test.go
|
||||
|
|
Loading…
Reference in a new issue