From b5f377106268ee7dd0d1ccdb188d37c52d324266 Mon Sep 17 00:00:00 2001 From: Angel J <78835633+iamanaws@users.noreply.github.com> Date: Sat, 13 Jun 2026 14:15:09 -0700 Subject: [PATCH] doc/pnpmBuildHook: add nix highlighting and fix dontPnpmBuild example --- doc/hooks/pnpm.section.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/hooks/pnpm.section.md b/doc/hooks/pnpm.section.md index b00e7bfe81ff..58c966a4dbdf 100644 --- a/doc/hooks/pnpm.section.md +++ b/doc/hooks/pnpm.section.md @@ -7,7 +7,7 @@ The `pnpmBuildHook` in Nixpkgs overrides the default build phase for building pa :::{.example #ex-pnpm-build-hook} ## pnpmBuildHook example code snippet {#pnpm-build-hook-code-snippet} -``` +```nix { lib, stdenv, @@ -94,7 +94,7 @@ Controls the flags pass only to the pnpm build script invocation. Disables automatically running `pnpmBuildHook`. The build can still be run manually if needed, for example: -``` +```nix { lib, rustPlatform, @@ -123,9 +123,9 @@ rustPlatform.buildRustPackage (finalAttrs: { pnpmDeps = fetchPnpmDeps { inherit (finalAttrs) pname version src; inherit pnpm; - fetcherversion = 3; + fetcherversion = 4; hash = lib.fakeHash; - } + }; dontPnpmBuild = true; postBuild = ''