racket: use proper uname, allow for unix sockets

Racket checks the current platform via uname, then disallows
unix domain socket usage based on the result. Previously, it could not
successfully call uname at all, so it fell back to denying UDS.
This commit is contained in:
tilpner
2018-05-29 20:07:41 +02:00
parent 0450c7f5f3
commit a12a277e62

View File

@@ -58,7 +58,9 @@ stdenv.mkDerivation rec {
preConfigure = ''
unset AR
substituteInPlace src/configure --replace /usr/bin/uname ${coreutils}/bin/uname
for f in src/configure src/racket/src/string.c; do
substituteInPlace "$f" --replace /usr/bin/uname ${coreutils}/bin/uname
done
mkdir src/build
cd src/build
'';