nixpkgs/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
302 B
Nix
Raw Normal View History

2022-12-07 05:18:58 +00:00
{ lib, writeShellApplication, cargo, cargo-auditable }:
(writeShellApplication {
name = "cargo";
runtimeInputs = [ cargo cargo-auditable ];
text = ''
CARGO_AUDITABLE_IGNORE_UNSUPPORTED=1 cargo auditable "$@"
'';
}) // {
meta = cargo-auditable.meta // {
mainProgram = "cargo";
};
}