1 { lib, buildPackages, fetchFromGitHub, makeRustPlatform, installShellFiles, stdenv }:
5 pname = "cargo-auditable";
8 src = fetchFromGitHub {
9 owner = "rust-secure-code";
12 sha256 = "sha256-MKMPLv8jeST0l4tq+MMPC18qfZMmBixdj6Ng19YKepU=";
15 cargoSha256 = "sha256-6/f7pNaTL+U6bI6jMakU/lfwYYxN/EM3WkKZcydsyLk=";
17 # Cargo.lock is outdated
19 cargo update --offline
23 description = "A tool to make production Rust binaries auditable";
24 homepage = "https://github.com/rust-secure-code/cargo-auditable";
25 changelog = "https://github.com/rust-secure-code/cargo-auditable/blob/v${version}/cargo-auditable/CHANGELOG.md";
26 license = with licenses; [ mit /* or */ asl20 ];
27 maintainers = with maintainers; [ figsoda ];
28 broken = stdenv.hostPlatform != stdenv.buildPlatform;
32 rustPlatform = makeRustPlatform {
33 inherit (buildPackages) rustc;
34 cargo = buildPackages.cargo.override {
39 bootstrap = rustPlatform.buildRustPackage (args // {
44 rustPlatform.buildRustPackage.override { cargo-auditable = bootstrap; } (args // {
50 installManPage cargo-auditable/cargo-auditable.1