From 00ecb0c85f8ff7b48e0966877a4c3fe67ad6893d Mon Sep 17 00:00:00 2001 From: KangaZero Date: Wed, 14 Oct 2026 16:02:26 +0900 Subject: [PATCH] convco: 0.6.3 -> 0.7.2 Added `strictDeps` Added `versionCheckHook` Added `nativeCheckInputs` and its needed dependencies for tests to work Replaced `rev` with `tag` --- pkgs/by-name/co/convco/package.nix | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/co/convco/package.nix b/pkgs/by-name/co/convco/package.nix index 30a0eea2d75f..793da85e7cc4 100644 --- a/pkgs/by-name/co/convco/package.nix +++ b/pkgs/by-name/co/convco/package.nix @@ -6,21 +6,26 @@ cmake, libiconv, openssl, + gitMinimal, pkg-config, + versionCheckHook, + writableTmpDirAsHomeHook, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "convco"; - version = "0.6.3"; + version = "0.7.2"; src = fetchFromGitHub { owner = "convco"; repo = "convco"; - rev = "v${finalAttrs.version}"; - hash = "sha256-fJrP4XtlUX0RvH8T76YxqUCM/R+QvUpsaumn3Z1SOh0="; + tag = "v${finalAttrs.version}"; + hash = "sha256-vzxIZdXmWASnafaeXt/QBgg9WXyMFwPclFeD+4oF4V0="; }; - cargoHash = "sha256-ySTXy8Jqw/EZl/olbWjMaDD8dryUFyWFvyapfvglFHI="; + cargoHash = "sha256-f/jfriJeBgR3OkWj5S/NkTc/bhGjqU/yQHUfddUo2yQ="; + + strictDeps = true; nativeBuildInputs = [ cmake @@ -34,6 +39,11 @@ rustPlatform.buildRustPackage (finalAttrs: { libiconv ]; + nativeCheckInputs = [ + writableTmpDirAsHomeHook + gitMinimal + ]; + checkFlags = [ # disable test requiring networking "--skip=git::tests::test_find_last_unordered_prerelease" @@ -41,6 +51,9 @@ rustPlatform.buildRustPackage (finalAttrs: { "--skip=git::tests::test_find_matching_prerelease_without_matching_release" ]; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + meta = { description = "Conventional commit cli"; mainProgram = "convco";