Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.2 KiB
Nix
Raw Permalink Normal View History

{
lib,
fetchFromGitLab,
buildNpmPackage,
2025-04-14 17:57:15 +02:00
fetchNpmDeps,
jq,
moreutils,
}:
2025-03-16 15:57:38 +01:00
buildNpmPackage (finalAttrs: {
pname = "glitchtip-frontend";
version = "5.1.0";
src = fetchFromGitLab {
owner = "glitchtip";
repo = "glitchtip-frontend";
2025-03-16 15:57:38 +01:00
tag = "v${finalAttrs.version}";
hash = "sha256-8l/V2u/j3nF6GqFlQwK33pQuRAPXmqitmrNq6Z8p7ZQ=";
};
2025-04-14 17:57:15 +02:00
npmDeps = fetchNpmDeps {
inherit (finalAttrs) src;
hash = "sha256-Lvhf80O/UTFABIGHjSVz4olBkEMUoE7XX66PD6P/FiA=";
2025-04-14 17:57:15 +02:00
};
postPatch = ''
2025-04-14 17:57:15 +02:00
jq '.devDependencies |= del(.cypress, ."cypress-localstorage-commands")' package.json | sponge package.json
'';
2025-04-14 17:57:15 +02:00
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";
2025-03-16 15:57:38 +01:00
changelog = "https://gitlab.com/glitchtip/glitchtip-frontend/-/releases/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
defelo
felbinger
];
};
2025-03-16 15:57:38 +01:00
})