diff options
author | Lily Foster <lily@lily.flowers> | 2022-12-15 21:06:29 -0500 |
---|---|---|
committer | Winter <winter@winter.cafe> | 2022-12-16 22:57:18 -0500 |
commit | 067bfc6c90a301572cec7da48f09c447a9a8eae0 (patch) | |
tree | aff917be87e97a2463d2716678a8842c60b5a86d /pkgs/applications/audio/open-stage-control | |
parent | e738da1f9508f58555223ef881f5778b3af51db0 (diff) |
open-stage-control: do not copy node_modules to reduce closure
Diffstat (limited to 'pkgs/applications/audio/open-stage-control')
-rw-r--r-- | pkgs/applications/audio/open-stage-control/default.nix | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pkgs/applications/audio/open-stage-control/default.nix b/pkgs/applications/audio/open-stage-control/default.nix index 3c57041e45589..3574dc2f5ac92 100644 --- a/pkgs/applications/audio/open-stage-control/default.nix +++ b/pkgs/applications/audio/open-stage-control/default.nix @@ -33,16 +33,13 @@ buildNpmPackage rec { makeCacheWritable = true; npmFlags = [ "--legacy-peer-deps" ]; - # Override installPhase so we can copy the only folders that matter (app and node_modules) + # Override installPhase so we can copy the only directory that matters (app) installPhase = '' runHook preInstall - # prune unused deps - npm prune --omit dev --no-save $npmFlags - # copy built app and node_modules directories mkdir -p $out/lib/node_modules/open-stage-control - cp -r app node_modules $out/lib/node_modules/open-stage-control/ + cp -r app $out/lib/node_modules/open-stage-control/ # copy icon install -Dm644 resources/images/logo.png $out/share/icons/hicolor/256x256/apps/open-stage-control.png |