fosrl-pangolin: 1.15.3 -> 1.16.2 (#498632)

This commit is contained in:
isabel
2026-04-03 19:24:43 +00:00
committed by GitHub
+11 -7
View File
@@ -29,16 +29,16 @@ in
buildNpmPackage (finalAttrs: {
pname = "pangolin";
version = "1.15.3";
version = "1.16.2";
src = fetchFromGitHub {
owner = "fosrl";
repo = "pangolin";
tag = finalAttrs.version;
hash = "sha256-UGfwbFbuQ0ljipCjnPxZ/Is2hh1vjZJb97Lo/43sWeg=";
hash = "sha256-pWD2VinfkCiSSP6/einXgduKQ8lzWdHlrj2eqUU/x6Y=";
};
npmDepsHash = "sha256-kfgwU5QusUNWVcRXlYCS3ES1Av/phCHG8nFBj0yjz2Q=";
npmDepsHash = "sha256-CwS26eRAIuxJ2fekRRapDWYAOHXPV0mIX/by4uW2ZOM=";
nativeBuildInputs = [
esbuild
@@ -49,12 +49,16 @@ buildNpmPackage (finalAttrs: {
# Based on pkgs.nextjs-ollama-llm-ui.
postPatch = ''
substituteInPlace src/app/layout.tsx --replace-fail \
"{ Geist, Inter, Manrope, Open_Sans } from \"next/font/google\"" \
"{ Inter } from \"next/font/google\"" \
"localFont from \"next/font/local\""
substituteInPlace src/app/layout.tsx --replace-fail \
"const font = Inter({${"\n"} subsets: [\"latin\"]${"\n"}});" \
"const font = localFont({ src: './Inter.ttf' });"
"const inter = Inter({${"\n"} subsets: [\"latin\"]${"\n"}});" \
"const inter = localFont({ src: './Inter.ttf' });"
substituteInPlace server/lib/consts.ts --replace-fail \
'export const APP_VERSION = "1.16.0";' \
'export const APP_VERSION = "${finalAttrs.version}";'
cp "${inter}/share/fonts/truetype/InterVariable.ttf" src/app/Inter.ttf
'';
@@ -62,7 +66,7 @@ buildNpmPackage (finalAttrs: {
preBuild = ''
npm run set:${db false}
npm run set:oss
npm run db:${db false}:generate
npm run db:generate
'';
buildPhase = ''