cargo-auditable: add nix-update-script

(cherry picked from commit 5cd317d2da)
This commit is contained in:
Ross Smyth 2026-06-08 16:42:07 -04:00 committed by github-actions[bot]
commit 28a915286d
2 changed files with 6 additions and 1 deletions

View file

@ -16,6 +16,7 @@ lib.extendMkDerivation {
auditable ? true,
hash ? "",
cargoHash ? "",
passthru ? { },
...
}:
{
@ -47,7 +48,9 @@ lib.extendMkDerivation {
installManPage cargo-auditable/cargo-auditable.1
'';
passthru.bootstrap = auditable-bootstrap;
passthru = passthru // {
bootstrap = auditable-bootstrap;
};
meta = {
description = "Tool to make production Rust binaries auditable";

View file

@ -2,6 +2,7 @@
buildPackages,
callPackage,
makeRustPlatform,
nix-update-script,
}:
let
# Need to use the build platform rustc and Cargo so that
@ -32,4 +33,5 @@ in
auditableBuilder {
inherit version hash cargoHash;
auditable = true;
passthru.updateScript = nix-update-script { };
}