U4UPWSDP734EPIQUV35UH25QZ7XIBLXVS2WG7FB6UCEHIZMGPKPAC {lib,stdenv,src,writeText,sbclBootstrap,zstd,sbclBootstrapHost ? "${sbclBootstrap}/bin/sbcl --disable-debugger --no-userinit --no-sysinit",texinfo,}: letversion = builtins.substring 0 7 src.rev;instdenv.mkDerivation rec {pname = "sbcl";inherit version;inherit src;nativeBuildInputs = [texinfo];buildInputs = [zstd];# There are no patches necessary for the currently enabled versions, but this# code is left in place for the next potential patch.postPatch = ''echo '"${version}.nixos"' > version.lisp-expr# SBCL checks whether files are up-to-date in many places..# Unfortunately, same timestamp is not good enoughsed -e 's@> x y@>= x y@' -i contrib/sb-aclrepl/repl.lisp#sed -e '/(date)/i((= date 2208988801) 2208988800)' -i contrib/asdf/asdf.lispsed -i src/cold/slam.lisp -e \'/file-write-date input/a)'sed -i src/cold/slam.lisp -e \'/file-write-date output/i(or (and (= 2208988801 (file-write-date output)) (= 2208988801 (file-write-date input)))'sed -i src/code/target-load.lisp -e \'/date defaulted-fasl/a)'sed -i src/code/target-load.lisp -e \'/date defaulted-source/i(or (and (= 2208988801 (file-write-date defaulted-source-truename)) (= 2208988801 (file-write-date defaulted-fasl-truename)))'# Fix the testssed -e '5,$d' -i contrib/sb-bsd-sockets/tests.lispsed -e '5,$d' -i contrib/sb-simple-streams/*test*.lispsed -e "s@/bin/uname@$(command -v uname)@g" -i src/code/*-os.lisp \src/code/run-program.lisp'';preBuild = ''export INSTALL_ROOT=$outmkdir -p test-homeexport HOME=$PWD/test-home'';enableFeatures = ["sb-thread" "sb-core-compression"];# Fails to find `O_LARGEFILE` otherwise.env.NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE";buildPhase = ''runHook preBuildsh make.sh --prefix=$out --xc-host="${sbclBootstrapHost}" --fancy ${lib.optionalString (stdenv.hostPlatform.system == "aarch64-darwin") "--arch=arm64"}(cd doc/manual ; make info)runHook postBuild'';installPhase = ''runHook preInstallINSTALL_ROOT=$out sh install.shrunHook postInstall'';meta = sbclBootstrap.meta;}
{lib,stdenv,src,writeText,sbclBootstrap,zstd,sbclBootstrapHost ? "${sbclBootstrap}/bin/sbcl --disable-debugger --no-userinit --no-sysinit",texinfo,}: letversion = builtins.substring 0 7 src.rev;instdenv.mkDerivation rec {pname = "sbcl";inherit version;inherit src;nativeBuildInputs = [texinfo];buildInputs = [zstd];# There are no patches necessary for the currently enabled versions, but this# code is left in place for the next potential patch.postPatch = ''echo '"${version}.nixos"' > version.lisp-expr# SBCL checks whether files are up-to-date in many places..# Unfortunately, same timestamp is not good enoughsed -e 's@> x y@>= x y@' -i contrib/sb-aclrepl/repl.lisp#sed -e '/(date)/i((= date 2208988801) 2208988800)' -i contrib/asdf/asdf.lispsed -i src/cold/slam.lisp -e \'/file-write-date input/a)'sed -i src/cold/slam.lisp -e \'/file-write-date output/i(or (and (= 2208988801 (file-write-date output)) (= 2208988801 (file-write-date input)))'sed -i src/code/target-load.lisp -e \'/date defaulted-fasl/a)'sed -i src/code/target-load.lisp -e \'/date defaulted-source/i(or (and (= 2208988801 (file-write-date defaulted-source-truename)) (= 2208988801 (file-write-date defaulted-fasl-truename)))'# Fix the testssed -e '5,$d' -i contrib/sb-bsd-sockets/tests.lispsed -e '5,$d' -i contrib/sb-simple-streams/*test*.lispsed -e "s@/bin/uname@$(command -v uname)@g" -i src/code/*-os.lisp \src/code/run-program.lisp'';preBuild = ''export INSTALL_ROOT=$outmkdir -p test-homeexport HOME=$PWD/test-home'';enableFeatures = ["sb-thread" "sb-core-compression"];# Fails to find `O_LARGEFILE` otherwise.env.NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE";buildPhase = ''runHook preBuildsh make.sh --prefix=$out --xc-host="${sbclBootstrapHost}" --fancy ${lib.optionalString (stdenv.hostPlatform.system == "aarch64-darwin") "--arch=arm64"}(cd doc/manual ; make info)runHook postBuild'';installPhase = ''runHook preInstallINSTALL_ROOT=$out sh install.shrunHook postInstall'';meta = sbclBootstrap.meta;}