about summary refs log tree commit diff
path: root/pkgs/development/interpreters/clisp
diff options
context:
space:
mode:
authorHraban Luyat <hraban@0brg.net>2023-09-29 13:18:48 -0400
committerHraban Luyat <hraban@0brg.net>2023-09-29 13:41:48 -0400
commitd34bc5bd3a5a28dde2772304a1d178f9374d22bd (patch)
treec029d531077288169756c2d4adfa4267391e71a8 /pkgs/development/interpreters/clisp
parentf3dab3509afca932f3f4fd0908957709bb1c1f57 (diff)
clisp: fix preconfigure phase on x86_64-darwin
One of the module names has a `/` in it so the hard-coded technique to "jump
back to the previous directory" by using `../..` doesn't work.

N.B.: build is still broken. This only fixes the preconfigure phase.
Diffstat (limited to 'pkgs/development/interpreters/clisp')
-rw-r--r--pkgs/development/interpreters/clisp/default.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/development/interpreters/clisp/default.nix b/pkgs/development/interpreters/clisp/default.nix
index cb0e547331c0f..30a2f6787edcc 100644
--- a/pkgs/development/interpreters/clisp/default.nix
+++ b/pkgs/development/interpreters/clisp/default.nix
@@ -82,13 +82,16 @@ stdenv.mkDerivation {
   '';
 
   preConfigure = lib.optionalString stdenv.isDarwin (''
-    cd src
-    autoreconf -f -i -I m4 -I glm4
-    cd -
+    (
+      cd src
+      autoreconf -f -i -I m4 -I glm4
+    )
   '' + lib.concatMapStrings (x: ''
-    cd modules/${x}
-    autoreconf -f -i -I ../../src -I ../../src/m4 -I ../../src/glm4
-    cd -
+    (
+      root="$PWD"
+      cd modules/${x}
+      autoreconf -f -i -I "$root/src" -I "$root/src/m4" -I "$root/src/glm4"
+    )
   '') withModules);
 
   configureFlags = [ "builddir" ]