experiment: Use mold by default in shell.nix
The outcome is much shorter build times. The risk is bugs, since mold is
still rather young.
@@ -6,8 +6,12 @@ mkShell {
LIBCLANG_PATH="${pkgs.llvmPackages.libclang}/lib";
PROTOC="${pkgs.protobuf}/bin/protoc";
PROTOC_INCLUDE="${pkgs.protobuf}/include";
- shellHook = '' '';
+ shellHook = ''
+ cargo='mold -run cargo'
+ '';
buildInputs = with pkgs; [
+ mold # much faster linker
+
gcc
openssl
pkg-config
