{ lib, stdenvNoCC, fetchFromGitHub, fetchzip, nodejs, pnpm_10, }: stdenvNoCC.mkDerivation (finalAttrs: { pname = "openlist-frontend"; version = "4.1.0"; src = fetchFromGitHub { owner = "OpenListTeam"; repo = "OpenList-Frontend"; tag = "v${finalAttrs.version}"; hash = "sha256-E1kdoTLL9SloSJBYB277BVYwgKp8rmFYmCj9yb6Otuw="; }; i18n = fetchzip { url = "https://github.com/OpenListTeam/OpenList-Frontend/releases/download/v${finalAttrs.version}/i18n.tar.gz"; hash = "sha256-/g6TXeCo+tkqE5xF2foghATErGEWUZuxtg70uDA5UFA="; stripRoot = false; }; nativeBuildInputs = [ nodejs pnpm_10.configHook ]; pnpmDeps = pnpm_10.fetchDeps { inherit (finalAttrs) pname version src; fetcherVersion = 1; hash = "sha256-lWrh7jRx8DkwPZkk5Eh9YndfLsPIwCOUeLdieonZBgI="; }; buildPhase = '' runHook preBuild cp -r ${finalAttrs.i18n}/* src/lang/ pnpm build runHook postBuild ''; installPhase = '' runHook preInstall cp -r dist $out echo -n "v${finalAttrs.version}" > $out/VERSION runHook postInstall ''; meta = { description = "Frontend of OpenList"; homepage = "https://github.com/OpenListTeam/OpenList-Frontend"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ moraxyc ]; }; })