nixpkgs/pkgs/development/tools/rust/cargo-auditable/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, fetchFromGitHub, makeRustPlatform, rustc, cargo }:
2022-09-18 17:27:46 +00:00
let
args = rec {
pname = "cargo-auditable";
version = "0.5.5";
2022-09-18 17:27:46 +00:00
src = fetchFromGitHub {
owner = "rust-secure-code";
repo = pname;
rev = "v${version}";
sha256 = "sha256-mEmTgd7sC2jmYeb5pEO985v/aWWKlq/mSQUAGi32loY=";
};
cargoSha256 = "sha256-G72UUqvFaTY/GQSkpz1wIzjb7vIWuAjvKMZosUB6YsA=";
2022-09-18 17:27:46 +00:00
meta = with lib; {
description = "A tool to make production Rust binaries auditable";
homepage = "https://github.com/rust-secure-code/cargo-auditable";
changelog = "https://github.com/rust-secure-code/cargo-auditable/blob/v${version}/cargo-auditable/CHANGELOG.md";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ figsoda ];
};
};
2022-09-18 17:27:46 +00:00
rustPlatform = makeRustPlatform {
inherit rustc;
cargo = cargo.override {
auditable = false;
};
2022-09-18 17:27:46 +00:00
};
bootstrap = rustPlatform.buildRustPackage (args // {
auditable = false;
});
in
rustPlatform.buildRustPackage.override { cargo-auditable = bootstrap; } args