mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
8522d789be
Packages were not correctly built with carog-auditable due to the missing auditable flag
15 lines
436 B
Nix
15 lines
436 B
Nix
{ lib, runCommand, makeBinaryWrapper, cargo, cargo-auditable }:
|
|
|
|
runCommand "auditable-${cargo.name}" {
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
meta = cargo-auditable.meta // {
|
|
mainProgram = "cargo";
|
|
};
|
|
} ''
|
|
mkdir -p $out/bin
|
|
makeWrapper ${cargo}/bin/cargo $out/bin/cargo \
|
|
--set CARGO_AUDITABLE_IGNORE_UNSUPPORTED 1 \
|
|
--prefix PATH : ${lib.makeBinPath [ cargo cargo-auditable ]} \
|
|
--add-flags auditable
|
|
''
|