postlight-parser: use yarnInstallHook
This commit is contained in:
parent
4fc37e1925
commit
feb1b538c4
@ -4,8 +4,8 @@
|
|||||||
, fetchYarnDeps
|
, fetchYarnDeps
|
||||||
, yarnConfigHook
|
, yarnConfigHook
|
||||||
, yarnBuildHook
|
, yarnBuildHook
|
||||||
|
, yarnInstallHook
|
||||||
, nodejs
|
, nodejs
|
||||||
, npmHooks
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
@ -27,8 +27,8 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
yarnConfigHook
|
yarnConfigHook
|
||||||
yarnBuildHook
|
yarnBuildHook
|
||||||
|
yarnInstallHook
|
||||||
nodejs
|
nodejs
|
||||||
npmHooks.npmInstallHook
|
|
||||||
];
|
];
|
||||||
# Upstream doesn't include a script in package.json that only builds without
|
# 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
|
# testing, and tests fail because they need to access online websites. Hence
|
||||||
@ -39,8 +39,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
postBuild = ''
|
postBuild = ''
|
||||||
yarn --offline run rollup -c
|
yarn --offline run rollup -c
|
||||||
'';
|
'';
|
||||||
# Tries to download stuff from the internet in this phase.
|
|
||||||
dontNpmPrune = true;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
changelog = "https://github.com/postlight/parser/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
changelog = "https://github.com/postlight/parser/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
||||||
|
Loading…
Reference in New Issue
Block a user