From 4a3699c08b5184eaf6576e3de105e66d68fcd252 Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 6 Mar 2023 18:07:21 -0500 Subject: [PATCH] cargo-auditable: 0.6.0 -> 0.6.1 Diff: https://github.com/rust-secure-code/cargo-auditable/compare/v0.6.0...v0.6.1 Changelog: https://github.com/rust-secure-code/cargo-auditable/blob/v0.6.1/cargo-auditable/CHANGELOG.md --- .../compilers/rust/cargo-auditable.nix | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/pkgs/development/compilers/rust/cargo-auditable.nix b/pkgs/development/compilers/rust/cargo-auditable.nix index 1c621276021a..1745ae266c28 100644 --- a/pkgs/development/compilers/rust/cargo-auditable.nix +++ b/pkgs/development/compilers/rust/cargo-auditable.nix @@ -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 + ''; })