knope: init at 0.22.4

This commit is contained in:
Michael Daniels
2026-04-18 13:40:15 -04:00
parent 489f8b25e3
commit 782e108715
+53
View File
@@ -0,0 +1,53 @@
{
fetchFromGitHub,
git,
lib,
libgit2,
nix-update-script,
pkg-config,
rustPlatform,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "knope";
version = "0.22.4";
src = fetchFromGitHub {
owner = "knope-dev";
repo = "knope";
tag = "knope/v${finalAttrs.version}";
hash = "sha256-2lZhetmctKSfLXd7jvepm1+Vc0db1teryx6tehEHCJM=";
};
cargoHash = "sha256-L7IT7nWinyWiuIwlBmGmHDyKB+o3LJBanHVFRQpWB+c=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libgit2 ];
env.LIBGIT2_NO_VENDOR = 1;
nativeCheckInputs = [ git ];
nativeInstallCheckInputs = [ versionCheckHook ];
__structuredAttrs = true;
doInstallCheck = true;
strictDeps = true;
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"knope/v(.*)"
];
};
meta = {
changelog = "https://github.com/knope-dev/knope/blob/${finalAttrs.src.tag}/CHANGELOG.md";
description = "Automation for changelogs and releases using conventional commits and/or changesets";
homepage = "https://knope.tech/";
mainProgram = "knope";
maintainers = with lib.maintainers; [ mdaniels5757 ];
license = lib.licenses.mit;
};
})