mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-20 13:59:22 +00:00
prettier-plugin-astro: switch to fetcherVersion 3; pin pnpm
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ia4ca1a7965f4516d602235a2c89bf0a96a6a6964
This commit is contained in:
parent
7a6c114744
commit
c558768e74
1 changed files with 6 additions and 6 deletions
|
|
@ -1,14 +1,15 @@
|
|||
{
|
||||
pins,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
nodejs,
|
||||
pnpm_9,
|
||||
pnpmConfigHook,
|
||||
fetchPnpmDeps,
|
||||
pins,
|
||||
writableTmpDirAsHomeHook,
|
||||
}: let
|
||||
pin = pins.prettier-plugin-astro;
|
||||
pnpm = pnpm_9;
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "prettier-plugin-astro";
|
||||
|
|
@ -21,17 +22,17 @@ in
|
|||
};
|
||||
|
||||
pnpmDeps = fetchPnpmDeps {
|
||||
pnpm = pnpm_9;
|
||||
inherit (finalAttrs) pname src;
|
||||
fetcherVersion = 2;
|
||||
inherit pnpm;
|
||||
inherit (finalAttrs) pname version src;
|
||||
hash = "sha256-K7pIWLkIIbUKDIcysfEtcf/eVMX9ZgyFHdqcuycHCNE=";
|
||||
fetcherVersion = 3; # https://nixos.org/manual/nixpkgs/stable/#javascript-pnpm-fetcherVersion
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
nodejs
|
||||
writableTmpDirAsHomeHook
|
||||
(pnpmConfigHook.overrideAttrs {
|
||||
propagatedBuildInputs = [pnpm_9];
|
||||
propagatedBuildInputs = [pnpm];
|
||||
})
|
||||
];
|
||||
|
||||
|
|
@ -46,7 +47,6 @@ in
|
|||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
# mkdir -p $out/dist
|
||||
cp -r dist/ $out
|
||||
cp -r node_modules $out
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue