precompress invtracker-web files
This commit is contained in:
parent
1262cb504f
commit
64484b91be
1 changed files with 13 additions and 1 deletions
14
flake.nix
14
flake.nix
|
@ -114,11 +114,23 @@
|
|||
invtracker-web = pkgs.mkYarnPackage rec {
|
||||
pname = "invtracker-web";
|
||||
version = self.lastModifiedDate;
|
||||
nativeBuildInputs = with pkgs; [
|
||||
brotli
|
||||
gzip
|
||||
zstd
|
||||
];
|
||||
src = "${self}/map-desktop";
|
||||
yarnLock = "${self}/map-desktop/yarn.lock";
|
||||
buildPhase = "yarn run build";
|
||||
installPhase = "cp -rv deps/map-desktop/dist $out";
|
||||
distPhase = "true";
|
||||
distPhase = ''
|
||||
fnames=$(find $out -type f)
|
||||
for f in $fnames; do
|
||||
brotli -k $f
|
||||
gzip -k9 $f
|
||||
zstd --ultra -22 -k $f
|
||||
done
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue