mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
d450afc911
This is to prevent pulling in GHC for such a simple wrapper script.
11 lines
297 B
Nix
11 lines
297 B
Nix
{ lib, writeShellScriptBin, cargo, cargo-auditable }:
|
|
|
|
(writeShellScriptBin "cargo" ''
|
|
export PATH="${lib.makeBinPath [ cargo cargo-auditable ]}:$PATH"
|
|
CARGO_AUDITABLE_IGNORE_UNSUPPORTED=1 exec cargo auditable "$@"
|
|
'') // {
|
|
meta = cargo-auditable.meta // {
|
|
mainProgram = "cargo";
|
|
};
|
|
}
|