mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-10 22:24:40 +00:00
bitwarden-cli: reduce closure size (#364275)
This commit is contained in:
commit
2aa4a28178
@ -50,6 +50,20 @@ buildNpmPackage rec {
|
|||||||
|
|
||||||
npmFlags = [ "--legacy-peer-deps" ];
|
npmFlags = [ "--legacy-peer-deps" ];
|
||||||
|
|
||||||
|
postConfigure = ''
|
||||||
|
# we want to build everything from source
|
||||||
|
shopt -s globstar
|
||||||
|
rm -r node_modules/**/prebuilds
|
||||||
|
shopt -u globstar
|
||||||
|
'';
|
||||||
|
|
||||||
|
postBuild = ''
|
||||||
|
# remove build artifacts that bloat the closure
|
||||||
|
shopt -s globstar
|
||||||
|
rm -r node_modules/**/{*.target.mk,binding.Makefile,config.gypi,Makefile,Release/.deps}
|
||||||
|
shopt -u globstar
|
||||||
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
tests = {
|
tests = {
|
||||||
vaultwarden = nixosTests.vaultwarden.sqlite;
|
vaultwarden = nixosTests.vaultwarden.sqlite;
|
||||||
|
Loading…
Reference in New Issue
Block a user