diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-04-22 12:52:06 -0700 |
---|---|---|
committer | Adam Joseph <adam@westernsemico.com> | 2023-04-22 12:56:30 -0700 |
commit | ad3a53265807daf53c1e64482ad710a93fe8f1ce (patch) | |
tree | ca7b6e481f70d32e6e1a81c9c148e4e0fd1cde25 /pkgs/development/compilers/rust | |
parent | 758ae7d4f44e7d0544f4b57debdbd1d385c9ea3e (diff) | |
download | nixlib-ad3a53265807daf53c1e64482ad710a93fe8f1ce.tar nixlib-ad3a53265807daf53c1e64482ad710a93fe8f1ce.tar.gz nixlib-ad3a53265807daf53c1e64482ad710a93fe8f1ce.tar.bz2 nixlib-ad3a53265807daf53c1e64482ad710a93fe8f1ce.tar.lz nixlib-ad3a53265807daf53c1e64482ad710a93fe8f1ce.tar.xz nixlib-ad3a53265807daf53c1e64482ad710a93fe8f1ce.tar.zst nixlib-ad3a53265807daf53c1e64482ad710a93fe8f1ce.zip |
rust/cargo.nix: disable audit if audit.meta.broken
Not much point in auditing things that can't be built.
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r-- | pkgs/development/compilers/rust/cargo.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/compilers/rust/cargo.nix b/pkgs/development/compilers/rust/cargo.nix index 7c094ac4ef9c..705d172e4fcf 100644 --- a/pkgs/development/compilers/rust/cargo.nix +++ b/pkgs/development/compilers/rust/cargo.nix @@ -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; |