mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
awk-language-server: prune deps before installing (#577157)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
jq,
|
||||
fetchYarnDeps,
|
||||
|
||||
yarn,
|
||||
yarnConfigHook,
|
||||
yarnBuildHook,
|
||||
npmHooks,
|
||||
@@ -47,9 +48,15 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
yarnBuildHook
|
||||
npmHooks.npmInstallHook
|
||||
nodejs
|
||||
yarn
|
||||
];
|
||||
|
||||
yarnBuildScript = "build:server";
|
||||
|
||||
# Prune deps before install to save space
|
||||
preInstall = ''
|
||||
yarn install --offline --frozen-lockfile --force --production=true --ignore-scripts
|
||||
'';
|
||||
dontNpmPrune = true;
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user