diff --git a/pkgs/build-support/rust/default.nix b/pkgs/build-support/rust/default.nix index 79e4366eebe1..9eebb53d5238 100644 --- a/pkgs/build-support/rust/default.nix +++ b/pkgs/build-support/rust/default.nix @@ -3,6 +3,7 @@ , src ? null , srcs ? null , sourceRoot ? null +, logLevel ? "warn" , buildInputs ? [] , cargoUpdateHook ? "" , ... } @ args: @@ -42,6 +43,7 @@ in stdenv.mkDerivation (args // { EOF export CARGO_HOME="$(realpath deps)" + export RUST_LOG=${logLevel} # Let's find out which $indexHash cargo uses for file:///dev/null (cd $sourceRoot && cargo fetch &>/dev/null) || true