buildRustPackage: Add log-level argument.

This commit is contained in:
Moritz Ulrich 2016-05-28 12:46:16 +02:00
parent b88caeff8f
commit 1e04865e87

View file

@ -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