depot/third_party/nixpkgs/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

13 lines
302 B
Nix

{ 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";
};
}