mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
cargo-preflight: init at 0.5.1 (#407312)
This commit is contained in:
parent
38126479cf
commit
1d987b6a44
1 changed files with 36 additions and 0 deletions
36
pkgs/by-name/ca/cargo-preflight/package.nix
Normal file
36
pkgs/by-name/ca/cargo-preflight/package.nix
Normal 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;
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue