about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authormucaho <mkucko@gmail.com>2016-04-04 02:49:58 +0100
committermucaho <mkucko@gmail.com>2016-04-04 02:49:58 +0100
commit0c195db5dd33d3c2ab5e690659ba8d34fa70579d (patch)
tree18433501366e79bb675201a78628e384485e6c16 /pkgs
parenta703bd49a9a528fb451b69b707c463f474d2d660 (diff)
vscode: shrink derivation size
Prune out compile-time dependencies.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/editors/vscode/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/editors/vscode/default.nix b/pkgs/applications/editors/vscode/default.nix
index c1903f0c5cf25..64b46c2ac6ecd 100644
--- a/pkgs/applications/editors/vscode/default.nix
+++ b/pkgs/applications/editors/vscode/default.nix
@@ -42,8 +42,8 @@ in
     '';
 
     buildPhase  = ''
-      # INSTALL COMPILE- & RUN-TIME DEPENDENCIES
-      echo "INSTALL COMPILE- & RUN-TIME DEPENDENCIES"
+      # BUILD COMPILE- & RUN-TIME DEPENDENCIES
+      echo "BUILD COMPILE- & RUN-TIME DEPENDENCIES"
       mkdir -p ./tmp
       HOME=./tmp ./scripts/npm.sh install
 
@@ -60,6 +60,10 @@ in
     '';
 
     installPhase = ''
+      # PRUNE COMPILE-TIME DEPENDENCIES
+      echo "PRUNE COMPILE-TIME DEPENDENCIES"
+      npm prune --production
+
       # COPY FILES NEEDED FOR RUNNING APPLICATION TO OUT DIRECTORY
       echo "COPY FILES NEEDED FOR RUNNING APPLICATION TO OUT DIRECTORY"
       mkdir -p "$out"