Skip to content

Commit

Permalink
postlight-parser: use yarnInstallHook
Browse files Browse the repository at this point in the history
  • Loading branch information
lelgenio committed Sep 4, 2024
1 parent 4fc37e1 commit feb1b53
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkgs/by-name/po/postlight-parser/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
, fetchYarnDeps
, yarnConfigHook
, yarnBuildHook
, yarnInstallHook
, nodejs
, npmHooks
}:

stdenv.mkDerivation (finalAttrs: {
Expand All @@ -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
Expand All @@ -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";
Expand Down

0 comments on commit feb1b53

Please sign in to comment.