summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/racket
diff options
context:
space:
mode:
authortilpner <till@hoeppner.ws>2018-05-29 20:07:41 +0200
committertilpner <till@hoeppner.ws>2018-05-29 20:07:41 +0200
commita12a277e6247a7f43b11f7b16bcf815cd5af2d98 (patch)
treecbc286faffadbb65480484adfa540a7f2f57e6af /pkgs/development/interpreters/racket
parent0450c7f5f3b197a27e3d75544ec062adc46ef47e (diff)
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.
Diffstat (limited to 'pkgs/development/interpreters/racket')
-rw-r--r--pkgs/development/interpreters/racket/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/racket/default.nix b/pkgs/development/interpreters/racket/default.nix
index 32d24fa88356..f25d2933ab7f 100644
--- a/pkgs/development/interpreters/racket/default.nix
+++ b/pkgs/development/interpreters/racket/default.nix
@@ -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
'';