buildRustPackage: Add `log-level` argument.
commit1e04865e87c6d807db231a7ea485164c9c6cdecd
authorMoritz Ulrich <moritz@tarn-vedra.de>
dateSat 28 May 2016, 12:46 (11 years ago)
parentb88caef
pkgs/build-support/rust/default.nix+2
@@ -3,6 +3,7 @@
33, src ? null
44, srcs ? null
55, sourceRoot ? null
6+, logLevel ? "warn"
67, buildInputs ? []
78, cargoUpdateHook ? ""
89, ... } @ args:
@@ -42,6 +43,7 @@ in stdenv.mkDerivation (args // {
4243 EOF
4344
4445 export CARGO_HOME="$(realpath deps)"
46+ export RUST_LOG=${logLevel}
4547
4648 # Let's find out which $indexHash cargo uses for file:///dev/null
4749 (cd $sourceRoot && cargo fetch &>/dev/null) || true