Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitLab,
|
|
buildNpmPackage,
|
|
fetchNpmDeps,
|
|
jq,
|
|
moreutils,
|
|
}:
|
|
|
|
buildNpmPackage (finalAttrs: {
|
|
pname = "glitchtip-frontend";
|
|
version = "5.1.1";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "glitchtip";
|
|
repo = "glitchtip-frontend";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-WKh5w6AVyKhkGvGsy2Wv4Z01UaKTctDSfEhOek2Y84w=";
|
|
};
|
|
|
|
npmDeps = fetchNpmDeps {
|
|
inherit (finalAttrs) src;
|
|
hash = "sha256-G2DZhHfTWi0qCAMs+IP7T2XEecBwTX12Dk3O0pD8ZJw=";
|
|
};
|
|
|
|
postPatch = ''
|
|
jq '.devDependencies |= del(.cypress, ."cypress-localstorage-commands")' package.json | sponge package.json
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
moreutils
|
|
jq
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
npm run build-prod
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
cp -r dist/glitchtip-frontend/browser $out/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Frontend for GlitchTip";
|
|
homepage = "https://glitchtip.com";
|
|
changelog = "https://gitlab.com/glitchtip/glitchtip-frontend/-/releases/v${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
defelo
|
|
felbinger
|
|
];
|
|
};
|
|
})
|