about summary refs log tree commit diff
path: root/pkgs/by-name/gi
diff options
context:
space:
mode:
authorMotiejus Jakštys2024-02-29 14:14:38 +0200
committerMotiejus Jakštys2024-08-04 10:10:16 +0300
commitd97365e05e847554a7c51146a059a750cc9ceed4 (patch)
tree9ddfde5b5071c85a6228720649e5b9968564808e /pkgs/by-name/gi
parentbbd0655ae828b9f1cf39d891b52aa6506394ef46 (diff)
gitea.passthru.data-compressed: switch to compressDrvWeb
Diffstat (limited to 'pkgs/by-name/gi')
-rw-r--r--pkgs/by-name/gi/gitea/package.nix18
1 files changed, 2 insertions, 16 deletions
diff --git a/pkgs/by-name/gi/gitea/package.nix b/pkgs/by-name/gi/gitea/package.nix
index 4bb7c0014c0d..81625263a356 100644
--- a/pkgs/by-name/gi/gitea/package.nix
+++ b/pkgs/by-name/gi/gitea/package.nix
@@ -6,15 +6,13 @@
 , git
 , bash
 , coreutils
+, compressDrvWeb
 , gitea
 , gzip
 , openssh
 , pam
 , sqliteSupport ? true
 , pamSupport ? stdenv.hostPlatform.isLinux
-, runCommand
-, brotli
-, xorg
 , nixosTests
 , buildNpmPackage
 }:
@@ -90,19 +88,7 @@ in buildGoModule rec {
   '';
 
   passthru = {
-    data-compressed = runCommand "gitea-data-compressed" {
-      nativeBuildInputs = [ brotli xorg.lndir ];
-    } ''
-      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)' \
-        -exec gzip --best --keep --force {} ';' \
-        -exec brotli --best --keep --no-copy-stat {} ';'
-    '';
+    data-compressed = lib.warn "gitea.passthru.data-compressed is deprecated. Use \"compressDrvWeb gitea.data\"." (compressDrvWeb gitea.data);
 
     tests = nixosTests.gitea;
   };