Commit d34bc5bd authored by Hraban Luyat's avatar Hraban Luyat
Browse files

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.
parent f3dab350
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -82,13 +82,16 @@ stdenv.mkDerivation {
  '';

  preConfigure = lib.optionalString stdenv.isDarwin (''
    (
      cd src
      autoreconf -f -i -I m4 -I glm4
    cd -
    )
  '' + lib.concatMapStrings (x: ''
    (
      root="$PWD"
      cd modules/${x}
    autoreconf -f -i -I ../../src -I ../../src/m4 -I ../../src/glm4
    cd -
      autoreconf -f -i -I "$root/src" -I "$root/src/m4" -I "$root/src/glm4"
    )
  '') withModules);

  configureFlags = [ "builddir" ]