anchor.diff:              patchelf --set-rpath $out/lib:${stdenv.cc.cc.lib}/lib $out/lib/libboost_thread.so.*
             ''}
           '' +
  +        # Unpack the Rust crates.
  +        lib.optionalString is24 ''
  +          tar xvf ${crates} -C nix-rust/
  +          mv nix-rust/nix-vendored-crates* nix-rust/vendor
  +        '' +
           # For Nix-2.3, patch around an issue where the Nix configure step pulls in the
           # build system's bash and other utilities when cross-compiling
           lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform && isExactly23) ''
  
positive.code: { lib, fetchurl, callPackage
  , storeDir ? "/nix/store"
  , stateDir ? "/nix/var"
  , confDir ? "/etc"
  
negative.code:   { lib, stdenv, fetchpatch, perl, curl, bzip2, sqlite, openssl ? null, xz
    , bash, coreutils, gzip, gnutar
    , pkgconfig, boehmgc, perlPackages, libsodium, brotli, boost, editline, nlohmann_json
    , autoreconfHook, autoconf-archive, bison, flex, libxml2, libxslt, docbook5, docbook_xsl_ns
    , jq, libarchive, rustc, cargo
    , busybox-sandbox-shell
    , storeDir
  