Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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.

(cherry picked from commit 0547fd247f9960eeffd01973c55ed99112a57205)

+5
+5
pkgs/development/compilers/go/1.6.nix
··· 46 46 cd go 47 47 patchShebangs ./ # replace /bin/bash 48 48 49 + # This script produces another script at run time, 50 + # and thus it is not corrected by patchShebangs. 51 + substituteInPlace misc/cgo/testcarchive/test.bash \ 52 + --replace '#!/usr/bin/env bash' '#!${stdenv.shell}' 53 + 49 54 # Disabling the 'os/http/net' tests (they want files not available in 50 55 # chroot builds) 51 56 rm src/net/{listen,parse}_test.go