aboutsummaryrefslogtreecommitdiff
path: root/pusher
diff options
context:
space:
mode:
authorPiotr Dobrowolski2021-01-24 17:34:30 +0100
committerPiotr Dobrowolski2021-02-05 09:50:18 +0100
commite5859bb3258351c19540eedd6a8d1dff14af1295 (patch)
tree132d0224e9856cd1cba021055a0f696316a71917 /pusher
parent059adccbe54c6a85d2366f0d0bb3956356bf64a3 (diff)
back,pusher: reduce final derivation size
While this still is a major hack, this reduces unused node_modules (about 200MB each) being pulled in from workadventure*-modules-* and workadventure-messages.
Diffstat (limited to 'pusher')
-rw-r--r--pusher/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pusher/default.nix b/pusher/default.nix
index bdace68..44c4c68 100644
--- a/pusher/default.nix
+++ b/pusher/default.nix
@@ -60,11 +60,14 @@ yarn2nix-moretea.mkYarnPackage rec {
dontStrip = true;
+ # workadventureback below is a package name extracted from package.json,
+ # intended until upstream fixes that up.
buildPhase = ''
mkdir -p $out
ln -s ${workadventure.messages.outPath}/generated deps/workadventureback/src/Messages/generated
HOME=$TMPDIR yarn --offline run tsc
cp -r deps/workadventureback/dist $out/dist
+ rm -rf deps/workadventureback/{src,node_modules}
'';
postInstall = ''