anchor.diff:            # This is not cross-compile safe, don't have time to fix right now
             # but noting for future travellers.
             nativeBuildInputs =
  -            [ perl pkgconfig curl nix libsodium boost ];
  +            [ perl pkgconfig curl nix libsodium boost autoreconfHook autoconf-archive ];
   
             configureFlags =
               [ "--with-dbi=${perlPackages.DBI}/${perl.libPrefix}"
  
positive.code: 
        nativeBuildInputs =
          [ pkgconfig ]
          ++ lib.optionals is24 [ jq ];
  
        buildInputs =
          [ curl openssl sqlite xz bzip2 nlohmann_json
  
negative.code:             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) ''
  