From 54db7c68359a454d66e0c1625fe1634794820884 Mon Sep 17 00:00:00 2001 From: chillcicada <2210227279@qq.com> Date: Wed, 5 Aug 2026 06:41:52 +0800 Subject: [PATCH] gitlogue: 0.9.0 -> 0.10.0 --- pkgs/by-name/gi/gitlogue/package.nix | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/gi/gitlogue/package.nix b/pkgs/by-name/gi/gitlogue/package.nix index d6d1c4853c28..7c992b170e5b 100644 --- a/pkgs/by-name/gi/gitlogue/package.nix +++ b/pkgs/by-name/gi/gitlogue/package.nix @@ -6,21 +6,25 @@ openssl, libgit2, libssh2, + versionCheckHook, nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "gitlogue"; - version = "0.9.0"; + version = "0.10.0"; + + strictDeps = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "unhappychoice"; repo = "gitlogue"; tag = "v${finalAttrs.version}"; - hash = "sha256-w+5X3NhHCLDXRGQx2JxpIayekMk242uia1bJSRjDDAE="; + hash = "sha256-hmWp22UPcKRjLM6vNDkdWrgkvjO27Ys2xzkx/co8lrE="; }; - cargoHash = "sha256-Ne0dMpQJ2W/JgCXijosqXBr8B6C1XgK4KnOjByckcms="; + cargoHash = "sha256-PfITSo8iTQ1Y3wn/9PD4fsMGF0oRw1f1Xnhki4voqpM="; nativeBuildInputs = [ pkg-config ]; @@ -30,12 +34,26 @@ rustPlatform.buildRustPackage (finalAttrs: { libssh2 ]; + checkFlags = lib.forEach [ + # integration tests + "default_playback_fails_only_after_ui_startup_without_tty" + "default_playback_quits_cleanly_in_pseudo_tty" + "default_playback_with_invalid_theme_fails_before_ui_startup" + "diff_subcommand_reports_no_changes_for_clean_repo" + "diff_subcommand_with_invalid_theme_fails_before_ui_startup" + "diff_subcommand_with_staged_changes_fails_only_after_ui_startup_without_tty" + "diff_subcommand_with_staged_changes_quits_cleanly_in_pseudo_tty" + ] (test: "--skip=${test}"); + env = { OPENSSL_NO_VENDOR = 1; LIBGIT2_NO_VENDOR = 1; LIBSSH2_SYS_USE_PKG_CONFIG = 1; }; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + passthru.updateScript = nix-update-script { }; meta = {