package/prettier-plugin-pug: fix build and properly modernise

Based on the full set of changes to the astro plugin, not just the basic
fetcher update.
This commit is contained in:
alfarel 2026-05-28 23:46:04 -04:00
commit b8ae815a8b
No known key found for this signature in database

View file

@ -4,6 +4,7 @@
gitMinimal,
pnpm_9,
pnpmConfigHook,
zstd,
fetchPnpmDeps,
pins,
fetchFromGitHub,
@ -36,25 +37,21 @@ in
nodejs
gitMinimal
writableTmpDirAsHomeHook
(pnpmConfigHook.overrideAttrs {
propagatedBuildInputs = [pnpm_9];
(pnpmConfigHook.override {
pnpm = pnpm_9;
})
pnpm_9
zstd
];
buildPhase = ''
runHook preBuild
pnpm run build
runHook postBuild
'';
installPhase = ''
runHook preInstall
preInstall = ''
cp -r dist/ $out
cp -r node_modules $out
runHook postInstall
'';
})