Skip to content

Commit

Permalink
cargo-auditable-cargo-wrapper: don't wrap if cargo-auditable is meta.…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Adam Joseph and figsoda authored Aug 26, 2023
1 parent 4b0e375 commit bac515f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 ];

Expand Down

0 comments on commit bac515f

Please sign in to comment.