anchor.diff:  
       substituteInPlace src/runtime/Config.x86-64-darwin \
         --replace mmacosx-version-min=10.4 mmacosx-version-min=10.5
  -  '';
  +  ''
  +  + (if purgeNixReferences
  +    then
  +      # This is the default location to look for the core; by default in $out/lib/sbcl
  +      ''
  +        sed 's@^\(#define SBCL_HOME\) .*$@\1 "/no-such-path"@' \
  +          -i src/runtime/runtime.c
  +      ''
  +    else
  +      # Fix software version retrieval
  +      ''
  +        sed -e "s@/bin/uname@$(command -v uname)@g" -i src/code/*-os.lisp
  +      ''
  +    );
  +
   
     preBuild = ''
       export INSTALL_ROOT=$out
  
positive.code:     INSTALL_ROOT=$out sh install.sh
    '';
  
    meta = sbclBootstrap.meta // {
      inherit version;
      updateWalker = true;
  
negative.code: { 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}";
  