karakeep: add update script and version check

This commit is contained in:
Anton Tetov 2025-06-13 18:41:22 +02:00
parent d434f81f71
commit 1d6dab032b
No known key found for this signature in database
GPG Key ID: 6BCAFF0120433A0E

View File

@ -2,6 +2,8 @@
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
testers,
nodejs,
node-gyp,
inter,
@ -124,6 +126,18 @@ stdenv.mkDerivation (finalAttrs: {
find $out -type l ! -exec test -e {} \; -delete
'';
passthru = {
tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
# remove hardcoded version if upstream syncs general version with cli
# version
version = "0.23.0";
};
};
updateScript = nix-update-script { };
};
meta = {
homepage = "https://karakeep.app/";
description = "Self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search";