about summary refs log tree commit diff
path: root/pkgs/development/compilers/rust
diff options
context:
space:
mode:
authorAdam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com>2023-08-26 21:07:05 +0000
committerGitHub <noreply@github.com>2023-08-26 16:07:05 -0500
commitbac515fa9d2d9dce1746f1674bc8aad9193c5092 (patch)
treed5ec7e9384eb85e9ce012c1dd348391d95e9c761 /pkgs/development/compilers/rust
parent4b0e375dc9392a69f7158162914e615ddc751633 (diff)
downloadnixlib-bac515fa9d2d9dce1746f1674bc8aad9193c5092.tar
nixlib-bac515fa9d2d9dce1746f1674bc8aad9193c5092.tar.gz
nixlib-bac515fa9d2d9dce1746f1674bc8aad9193c5092.tar.bz2
nixlib-bac515fa9d2d9dce1746f1674bc8aad9193c5092.tar.lz
nixlib-bac515fa9d2d9dce1746f1674bc8aad9193c5092.tar.xz
nixlib-bac515fa9d2d9dce1746f1674bc8aad9193c5092.tar.zst
nixlib-bac515fa9d2d9dce1746f1674bc8aad9193c5092.zip
cargo-auditable-cargo-wrapper: don't wrap if cargo-auditable is meta.broken (#250615)
Recent changes to `cargo-auditable-cargo-wrapper` and `librsvg`
caused it to ignore the user's decision to opt out of `cargo-audit`
functionality, partially because `librsvg` does not use
`buildRustPackage`.

This commit restores the single-point-of-opt-out from this mis-named
functionality: `cargo-auditable.meta.broken`.

Co-authored-by: figsoda <figsoda@pm.me>
Diffstat (limited to 'pkgs/development/compilers/rust')
-rw-r--r--pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix b/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix
index d00ab4f496b3..6e982aee01a3 100644
--- a/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix
+++ b/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix
@@ -1,5 +1,8 @@
 { lib, runCommand, makeBinaryWrapper, rust-audit-info, cargo, cargo-auditable }:
 
+if cargo-auditable.meta.broken then
+  cargo
+else
 runCommand "auditable-${cargo.name}" {
   nativeBuildInputs = [ makeBinaryWrapper ];