2023-05-24 13:37:59 +00:00
|
|
|
{ lib, runCommand, makeBinaryWrapper, cargo, cargo-auditable }:
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
runCommand "auditable-${cargo.name}" {
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
2023-01-20 10:41:00 +00:00
|
|
|
meta = cargo-auditable.meta // {
|
|
|
|
mainProgram = "cargo";
|
|
|
|
};
|
2023-05-24 13:37:59 +00:00
|
|
|
} ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${cargo}/bin/cargo $out/bin/cargo \
|
|
|
|
--set CARGO_AUDITABLE_IGNORE_UNSUPPORTED 1 \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ cargo cargo-auditable ]}
|
|
|
|
''
|