From 91806efc728c809ac0f146717bec2322748cc1e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 17 Jan 2024 12:59:37 +0200 Subject: [PATCH] 79 chars --- pkgs/e11sync-static.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/e11sync-static.nix b/pkgs/e11sync-static.nix index 0a1e0b7..82d2739 100644 --- a/pkgs/e11sync-static.nix +++ b/pkgs/e11sync-static.nix @@ -2,7 +2,6 @@ stdenv, runCommand, python3Packages, - coreutils, zopfli, brotli, findutils, @@ -18,22 +17,23 @@ dart-sass zopfli brotli + gawk + findutils ]; patchPhase = ''patchShebangs --build manage.py''; buildPhase = '' - mkdir -p static - export E11SYNC_STATIC_ROOT=static + export E11SYNC_STATIC_ROOT=$PWD/static export E11SYNC_DEBUG= export E11SYNC_COMPRESS_OFFLINE=1 ./manage.py collectstatic ./manage.py compress - ${findutils}/bin/find static/ \ + find static/ \ -name '*.css' -or \ -name '*.js' -or \ -name '*.svg' | \ - ${gawk}/bin/awk '{print "zopfli "$0;print "brotli "$0}' | \ - ${findutils}/bin/xargs -P''$(${coreutils}/bin/nproc) -I{} $SHELL -c {} + awk '{print "zopfli \""$0"\"";print "brotli \""$0"\""}' | \ + xargs -P''$(nproc) -I{} $SHELL -c {} ''; installPhase = ''mv static $out'';