mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
Merge pull request #14434 from mucaho/vscode_shrink
vscode: shrink derivation size
This commit is contained in:
commit
bcc8e0ca1e
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue