
Changelog: https://gitlab.com/glitchtip/glitchtip-backend/-/blob/v5.1.0/CHANGELOG Diff: https://gitlab.com/glitchtip/glitchtip-backend/-/compare/v5.0.9...v5.1.0 Diff: https://gitlab.com/glitchtip/glitchtip-frontend/-/compare/v5.0.9...v5.1.0
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.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "glitchtip";
|
|
repo = "glitchtip-frontend";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-8l/V2u/j3nF6GqFlQwK33pQuRAPXmqitmrNq6Z8p7ZQ=";
|
|
};
|
|
|
|
npmDeps = fetchNpmDeps {
|
|
inherit (finalAttrs) src;
|
|
hash = "sha256-Lvhf80O/UTFABIGHjSVz4olBkEMUoE7XX66PD6P/FiA=";
|
|
};
|
|
|
|
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
|
|
];
|
|
};
|
|
})
|