nezha-theme-user: add updateScript

This commit is contained in:
Moraxyc 2025-01-15 23:45:14 +08:00
parent 4b57591aa8
commit eee45208ff
No known key found for this signature in database

View file

@ -2,6 +2,7 @@
lib, lib,
buildNpmPackage, buildNpmPackage,
fetchFromGitHub, fetchFromGitHub,
nix-update-script,
}: }:
buildNpmPackage rec { buildNpmPackage rec {
@ -41,6 +42,8 @@ buildNpmPackage rec {
runHook postInstall runHook postInstall
''; '';
passthru.updateScript = nix-update-script { extraArgs = [ "--generate-lockfile" ]; };
meta = { meta = {
description = "Nezha monitoring user frontend based on next.js"; description = "Nezha monitoring user frontend based on next.js";
changelog = "https://github.com/hamster1963/nezha-dash-v1/releases/tag/v${version}"; changelog = "https://github.com/hamster1963/nezha-dash-v1/releases/tag/v${version}";