mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-10 07:00:00 +00:00
package/prettier-plugin-astro: fix outdated deps
This commit is contained in:
parent
01d49ca23a
commit
2b554c5624
1 changed files with 7 additions and 8 deletions
|
|
@ -5,6 +5,7 @@
|
|||
nodejs,
|
||||
pnpm_9,
|
||||
pnpmConfigHook,
|
||||
zstd,
|
||||
fetchPnpmDeps,
|
||||
writableTmpDirAsHomeHook,
|
||||
}: let
|
||||
|
|
@ -24,16 +25,18 @@ in
|
|||
pnpmDeps = fetchPnpmDeps {
|
||||
inherit pnpm;
|
||||
inherit (finalAttrs) pname version src;
|
||||
hash = "sha256-K7pIWLkIIbUKDIcysfEtcf/eVMX9ZgyFHdqcuycHCNE=";
|
||||
hash = "sha256-vs7KOsX+jmnY2+RKJlhSWDVyTUxAO2af3lyao9AYFr8=";
|
||||
fetcherVersion = 3; # https://nixos.org/manual/nixpkgs/stable/#javascript-pnpm-fetcherVersion
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
nodejs
|
||||
writableTmpDirAsHomeHook
|
||||
(pnpmConfigHook.overrideAttrs {
|
||||
propagatedBuildInputs = [pnpm];
|
||||
(pnpmConfigHook.override {
|
||||
inherit pnpm;
|
||||
})
|
||||
pnpm
|
||||
zstd
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
|
|
@ -44,12 +47,8 @@ in
|
|||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
preInstall = ''
|
||||
cp -r dist/ $out
|
||||
cp -r node_modules $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue