mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 04:13:12 +00:00
Merge pull request #324589 from Izorkin/fix-gitea-static
gitea: fix create static compressed files
This commit is contained in:
commit
e10593c057
@ -93,8 +93,10 @@ in buildGoModule rec {
|
||||
data-compressed = runCommand "gitea-data-compressed" {
|
||||
nativeBuildInputs = [ brotli xorg.lndir ];
|
||||
} ''
|
||||
mkdir $out
|
||||
lndir ${gitea.data}/ $out/
|
||||
mkdir -p $out/{options,public,templates}
|
||||
lndir ${frontend}/public $out/public
|
||||
lndir ${gitea.data}/options $out/options
|
||||
lndir ${gitea.data}/templates $out/templates
|
||||
|
||||
# Create static gzip and brotli files
|
||||
find -L $out -type f -regextype posix-extended -iregex '.*\.(css|html|js|svg|ttf|txt)' \
|
||||
|
Loading…
Reference in New Issue
Block a user