sub-store-frontend: init at 2.15.85

This commit is contained in:
Moraxyc
2025-12-19 19:40:22 +08:00
parent d30f406254
commit 89c6819a44

View File

@@ -0,0 +1,58 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
pnpm_10,
pnpm ? pnpm_10,
fetchPnpmDeps,
pnpmConfigHook,
nix-update-script,
nodejs,
}:
buildNpmPackage (finalAttrs: {
pname = "sub-store-frontend";
version = "2.15.85";
src = fetchFromGitHub {
owner = "sub-store-org";
repo = "Sub-Store-Front-End";
tag = finalAttrs.version;
hash = "sha256-K7tAqbM7cQpmZmRQFwJhpiesUoPzvXEKu5q0pYsj+ZA=";
};
nativeBuildInputs = [
nodejs
pnpm
];
npmDeps = null;
pnpmDeps = fetchPnpmDeps {
inherit (finalAttrs) pname version src;
inherit pnpm;
fetcherVersion = 3;
hash = "sha256-HEeNYLKvzO/RQWYnm5gqRjTrXiiCxKUxf3bcRvz+O4k=";
};
npmConfigHook = pnpmConfigHook;
installPhase = ''
runHook preInstall
cp -r dist $out
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Sub-Store Progressive Web App";
homepage = "https://github.com/sub-store-org/Sub-Store-Front-End";
changelog = "https://github.com/sub-store-org/Sub-Store-Front-End/releases/tag/${finalAttrs.version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ moraxyc ];
platforms = nodejs.meta.platforms;
};
})