From 0c195db5dd33d3c2ab5e690659ba8d34fa70579d Mon Sep 17 00:00:00 2001 From: mucaho Date: Mon, 4 Apr 2016 02:49:58 +0100 Subject: [PATCH] vscode: shrink derivation size Prune out compile-time dependencies. --- pkgs/applications/editors/vscode/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/vscode/default.nix b/pkgs/applications/editors/vscode/default.nix index c1903f0c5cf2..64b46c2ac6ec 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"