mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-15 22:19:17 +03:00
rust/cargo.nix: disable audit if audit.meta.broken
Not much point in auditing things that can't be built.
This commit is contained in:
parent
758ae7d4f4
commit
ad3a532658
1 changed files with 3 additions and 3 deletions
|
@ -2,13 +2,13 @@
|
|||
, file, curl, pkg-config, python3, openssl, cmake, zlib
|
||||
, installShellFiles, makeWrapper, rustPlatform, rustc
|
||||
, CoreFoundation, Security
|
||||
, auditable ? true
|
||||
, auditable ? !cargo-auditable.meta.broken
|
||||
, cargo-auditable
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage.override {
|
||||
rustPlatform.buildRustPackage.override (lib.optionalAttrs (!cargo-auditable.meta.broken) {
|
||||
cargo-auditable = cargo-auditable.bootstrap;
|
||||
} {
|
||||
}) {
|
||||
pname = "cargo";
|
||||
inherit (rustc) version src;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue