From a477ea7b5a9b3180c19bf453e7f8e6816c9477b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 30 Jan 2026 11:37:03 -0800 Subject: [PATCH] karakeep: use cli tag in order to align versions --- pkgs/by-name/ka/karakeep/package.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/ka/karakeep/package.nix b/pkgs/by-name/ka/karakeep/package.nix index bc9ffab51974..fbef3e1e096e 100644 --- a/pkgs/by-name/ka/karakeep/package.nix +++ b/pkgs/by-name/ka/karakeep/package.nix @@ -4,7 +4,6 @@ fetchFromGitHub, nix-update-script, nixosTests, - testers, nodejs, node-gyp, gnutar, @@ -15,6 +14,7 @@ pnpm_9, fetchPnpmDeps, pnpmConfigHook, + versionCheckHook, }: stdenv.mkDerivation (finalAttrs: { pname = "karakeep"; @@ -23,8 +23,8 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitHub { owner = "karakeep-app"; repo = "karakeep"; - tag = "v${finalAttrs.version}"; - hash = "sha256-ZYAjbinVMT0iiqojRxcKwQbvDqYteoExm1Ocppka0Ps="; + tag = "cli/v${finalAttrs.version}"; + hash = "sha256-Ssr/KcQHRtEloz4YPAUfUmcbicMumkIQ+wOjxe9PTXM="; }; patches = [ @@ -143,21 +143,22 @@ stdenv.mkDerivation (finalAttrs: { find $out -type l ! -exec test -e {} \; -delete ''; + doInstallCheck = true; + + nativeInstallCheckInputs = [ + versionCheckHook + ]; + passthru = { tests = { inherit (nixosTests) karakeep; - version = testers.testVersion { - package = finalAttrs.finalPackage; - # remove hardcoded version if upstream syncs general version with cli - # version - version = "0.29.1"; - }; }; updateScript = nix-update-script { }; }; meta = { homepage = "https://karakeep.app/"; + changelog = "https://github.com/karakeep-app/karakeep/releases/tag/v${finalAttrs.version}"; description = "Self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search"; license = lib.licenses.agpl3Only; maintainers = [ lib.maintainers.three ];