32 lines
792 B
Nix
32 lines
792 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
rustPlatform,
|
||
|
|
fetchFromGitHub,
|
||
|
|
nix-update-script,
|
||
|
|
}:
|
||
|
|
|
||
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||
|
|
pname = "action-validator";
|
||
|
|
version = "0.8.0";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "mpalmer";
|
||
|
|
repo = "action-validator";
|
||
|
|
tag = "v${finalAttrs.version}";
|
||
|
|
hash = "sha256-irBK27De9W5BSNIQynguOY8oPgA7K03dleE/0YvY75o=";
|
||
|
|
fetchSubmodules = true;
|
||
|
|
};
|
||
|
|
|
||
|
|
cargoHash = "sha256-w6qC4gJ06TfoQl2WD8lgOxSxUWyG6Z8ma9mUvvYlkTU=";
|
||
|
|
|
||
|
|
passthru.updateScript = nix-update-script { };
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
description = "Tool to validate GitHub Action and Workflow YAML files";
|
||
|
|
homepage = "https://github.com/mpalmer/action-validator";
|
||
|
|
license = lib.licenses.gpl3Plus;
|
||
|
|
mainProgram = "action-validator";
|
||
|
|
maintainers = with lib.maintainers; [ thiagokokada ];
|
||
|
|
};
|
||
|
|
})
|