From 4f2c5178b551bf45372dba53ef0b1a23a96f09b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 13 Feb 2024 08:58:45 +0200 Subject: [PATCH] gamja: nicer `find` expression --- pkgs/gamja.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkgs/gamja.nix b/pkgs/gamja.nix index b6c2643..8c4bd07 100644 --- a/pkgs/gamja.nix +++ b/pkgs/gamja.nix @@ -49,14 +49,10 @@ in ${xorg.lndir}/bin/lndir ${pkg}/ $out/ find $out \ - -name '*.css' -or \ - -name '*.js' -or \ - -name '*.json' -or \ - -name '*.map' -or \ - -name '*.webmanifest' -or \ - -name '*.html' | \ + -regextype posix-extended \ + -iregex '.*\.(css|js|json|map|webmanifest|html)' | \ tee >(xargs -n1 -P''$(nproc) ${zopfli}/bin/zopfli) | \ - xargs -n1 -P''$(nproc) ${brotli}/bin/brotli + xargs -n1 -P''$(nproc) ${brotli}/bin/brotli ''; };