nixpkgs/pkgs/development/compilers/rust/cargo-auditable-cargo-wrapper.nix
Zhaofeng Li d450afc911 cargo-auditable-cargo-wrapper: Use writeShellScriptBin instead of writeShellApplication
This is to prevent pulling in GHC for such a simple wrapper script.
2023-01-19 13:50:01 +10:00

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