figsoda 2023-03-06 18:07:21 -05:00
parent 4bfbd859a1
commit 4a3699c08b

View file

@ -1,18 +1,23 @@
{ lib, fetchFromGitHub, makeRustPlatform, rustc, cargo }:
{ lib, fetchFromGitHub, makeRustPlatform, rustc, cargo, installShellFiles }:
let
args = rec {
pname = "cargo-auditable";
version = "0.6.0";
version = "0.6.1";
src = fetchFromGitHub {
owner = "rust-secure-code";
repo = pname;
rev = "v${version}";
sha256 = "sha256-mSiEC+9QtRjWmywJnGgUqp+q8fhY0qUYrgjrAVaY114=";
sha256 = "sha256-MKMPLv8jeST0l4tq+MMPC18qfZMmBixdj6Ng19YKepU=";
};
cargoSha256 = "sha256-Wz5My/QxPpZVsPBUe3KHT3ttD6CTU8NCY8rhFEC+UlA=";
cargoSha256 = "sha256-6/f7pNaTL+U6bI6jMakU/lfwYYxN/EM3WkKZcydsyLk=";
# Cargo.lock is outdated
preConfigure = ''
cargo update --offline
'';
meta = with lib; {
description = "A tool to make production Rust binaries auditable";
@ -37,4 +42,12 @@ in
rustPlatform.buildRustPackage.override { cargo-auditable = bootstrap; } (args // {
auditable = true; # TODO: remove when this is the default
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
installManPage cargo-auditable/cargo-auditable.1
'';
})