Commit feb1b538 authored by lelgenio's avatar lelgenio
Browse files

postlight-parser: use yarnInstallHook

parent 4fc37e19
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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";