nezha-theme-admin: init at 1.1.3
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
{
|
||||
lib,
|
||||
buildNpmPackage,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "nezha-theme-admin";
|
||||
version = "1.1.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nezhahq";
|
||||
repo = "admin-frontend";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-5+nH2OT8/urH+1fRuwwj1RSQQM1JlKJwjYxEfclq1h8=";
|
||||
};
|
||||
|
||||
# TODO: Switch to the bun build function once available in nixpkgs
|
||||
npmDepsHash = "sha256-kY86RpVjv6IU5BBodNbNAQqehP/Iv8DmzqvN7gw/vvs=";
|
||||
|
||||
npmPackFlags = [ "--ignore-scripts" ];
|
||||
|
||||
npmBuildScript = "build-ignore-error";
|
||||
|
||||
dontNpmInstall = true;
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
cp -r dist $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Nezha monitoring admin frontend";
|
||||
homepage = "https://github.com/nezhahq/admin-frontend";
|
||||
changelog = "https://github.com/nezhahq/admin-frontend/releases/tag/v${version}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ moraxyc ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user