From 2b554c5624b39e7b2d90a2fb0556c9e2205d26a2 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Fri, 22 May 2026 15:39:51 +0200 Subject: [PATCH] package/prettier-plugin-astro: fix outdated deps --- .../by-name/prettier-plugin-astro/package.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/flake/pkgs/by-name/prettier-plugin-astro/package.nix b/flake/pkgs/by-name/prettier-plugin-astro/package.nix index 6e0b13ec..84c5424f 100644 --- a/flake/pkgs/by-name/prettier-plugin-astro/package.nix +++ b/flake/pkgs/by-name/prettier-plugin-astro/package.nix @@ -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 ''; })