cargo-preflight: init at 0.5.1 (#407312)

This commit is contained in:
supinie 2025-05-23 13:19:00 +01:00 committed by GitHub
parent 38126479cf
commit 1d987b6a44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,36 @@
{
lib,
fetchFromGitHub,
rustPlatform,
nix-update-script,
pkg-config,
openssl,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "cargo-preflight";
version = "0.5.1";
src = fetchFromGitHub {
owner = "supinie";
repo = "cargo-preflight";
rev = "v${finalAttrs.version}";
hash = "sha256-SL8c0eLsmBfUcmhC8uuUbupDTFLQWdeqRG3ImE1smvI=";
};
cargoHash = "sha256-q/JbaFr1ISe0OiKeGBQQlZ2TaMTJkLABilibcp98svM=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Custom Cargo subcommand to run local 'CI' on certain Git actions";
homepage = "https://github.com/supinie/cargo-preflight";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ supinie ];
platforms = lib.platforms.linux;
};
})