anchor.diff: -{ stdenv, fetchurl, sbclBootstrap, sbclBootstrapHost ? "${sbclBootstrap}/bin/sbcl --disable-debugger --no-userinit --no-sysinit" }:
  +{ stdenv, fetchurl, writeText, sbclBootstrap
  +, sbclBootstrapHost ? "${sbclBootstrap}/bin/sbcl --disable-debugger --no-userinit --no-sysinit"
  +  # Meant for sbcl used for creating binaries portable to non-NixOS via save-lisp-and-die.
  +  # Note that the created binaries still need `patchelf --set-interpreter ...`
  +  # to get rid of ${glibc} dependency.
  +, purgeNixReferences ? false
  +}:
   
   stdenv.mkDerivation rec {
     name    = "sbcl-${version}";
  
positive.code: 
      substituteInPlace src/runtime/Config.x86-64-darwin \
        --replace mmacosx-version-min=10.4 mmacosx-version-min=10.5
    '';
  
    preBuild = ''
      export INSTALL_ROOT=$out
  
negative.code:     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 tests
      sed -e '/deftest pwent/inil' -i contrib/sb-posix/posix-tests.lisp
      sed -e '/deftest grent/inil' -i contrib/sb-posix/posix-tests.lisp
  