mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
buildRustPackage: Add log-level
argument.
This commit is contained in:
parent
b88caeff8f
commit
1e04865e87
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue