buildRustPackage: Add log-level
argument.
This commit is contained in:
parent
b88caeff8f
commit
1e04865e87
@ -3,6 +3,7 @@
|
|||||||
, src ? null
|
, src ? null
|
||||||
, srcs ? null
|
, srcs ? null
|
||||||
, sourceRoot ? null
|
, sourceRoot ? null
|
||||||
|
, logLevel ? "warn"
|
||||||
, buildInputs ? []
|
, buildInputs ? []
|
||||||
, cargoUpdateHook ? ""
|
, cargoUpdateHook ? ""
|
||||||
, ... } @ args:
|
, ... } @ args:
|
||||||
@ -42,6 +43,7 @@ in stdenv.mkDerivation (args // {
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
export CARGO_HOME="$(realpath deps)"
|
export CARGO_HOME="$(realpath deps)"
|
||||||
|
export RUST_LOG=${logLevel}
|
||||||
|
|
||||||
# Let's find out which $indexHash cargo uses for file:///dev/null
|
# Let's find out which $indexHash cargo uses for file:///dev/null
|
||||||
(cd $sourceRoot && cargo fetch &>/dev/null) || true
|
(cd $sourceRoot && cargo fetch &>/dev/null) || true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user