about summary refs log tree commit diff
path: root/pkgs/by-name/po
diff options
context:
space:
mode:
authorlelgenio2024-07-19 20:27:40 -0300
committerlelgenio2024-09-04 11:15:47 -0300
commitfeb1b538c4527d36b0e87e1e53fb2333ae0445d1 (patch)
tree82c8f7ee9b2ea2f3522cd32c07d569ca162be5c6 /pkgs/by-name/po
parent4fc37e1925bfeca7f3e4dde90c27830ce4eb0eca (diff)
postlight-parser: use yarnInstallHook
Diffstat (limited to 'pkgs/by-name/po')
-rw-r--r--pkgs/by-name/po/postlight-parser/package.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/by-name/po/postlight-parser/package.nix b/pkgs/by-name/po/postlight-parser/package.nix
index fd0617ede1f2..bf72c9a19c3e 100644
--- a/pkgs/by-name/po/postlight-parser/package.nix
+++ b/pkgs/by-name/po/postlight-parser/package.nix
@@ -4,8 +4,8 @@
 , fetchYarnDeps
 , yarnConfigHook
 , yarnBuildHook
+, yarnInstallHook
 , nodejs
-, npmHooks
 }:
 
 stdenv.mkDerivation (finalAttrs: {
@@ -27,8 +27,8 @@ stdenv.mkDerivation (finalAttrs: {
   nativeBuildInputs = [
     yarnConfigHook
     yarnBuildHook
+    yarnInstallHook
     nodejs
-    npmHooks.npmInstallHook
   ];
   # Upstream doesn't include a script in package.json that only builds without
   # testing, and tests fail because they need to access online websites. Hence
@@ -39,8 +39,6 @@ stdenv.mkDerivation (finalAttrs: {
   postBuild = ''
     yarn --offline run rollup -c
   '';
-  # Tries to download stuff from the internet in this phase.
-  dontNpmPrune = true;
 
   meta = {
     changelog = "https://github.com/postlight/parser/blob/${finalAttrs.src.rev}/CHANGELOG.md";