chore: collapse packages

This commit is contained in:
fufsob committed 2026-09-14 09:55:24 +00:00
1 parent ab2167ff9c
commit e6b92ecac7
29 files changed
+151 -111

No files matched your search

+5 -5
View File
@@ -83,7 +83,7 @@ let
if zapret2Cfg.profiles == null && isZ2k then
"${z2kGenerated}/profiles"
else
pkgs.writeText "proxy-suite-zapret2-profiles" (
pkgs.writeText "proxy-suite-zapret2" (
lib.concatStringsSep " --new " (map renderProfile (orSource zapret2Cfg.profiles source.profiles))
);
@@ -91,7 +91,7 @@ let
if isZ2k then
"${z2kGenerated}/blobs"
else
pkgs.writeText "proxy-suite-zapret2-blobs" (lib.concatStringsSep " " source.blobArgs);
pkgs.writeText "proxy-suite-zapret2" (lib.concatStringsSep " " source.blobArgs);
# The state layer wraps circular, so it loads after the source's Lua. z2k-tcp16
# does nothing until the cutoff probe has written its maps.
@@ -138,7 +138,7 @@ let
modeFilter,
}:
let
header = pkgs.writeText "proxy-suite-zapret2-config-header" (
header = pkgs.writeText "proxy-suite-zapret2" (
lib.concatStringsSep "\n" (
[
"# Generated by proxy-suite. Do not edit."
@@ -175,7 +175,7 @@ let
)
);
in
pkgs.runCommand "proxy-suite-zapret2-config"
pkgs.runCommand "proxy-suite-zapret2"
{
nativeBuildInputs = [ pkgs.gawk ];
inherit circularFill optPrefix;
@@ -259,7 +259,7 @@ let
) exemptCidrs
) chains;
in
pkgs.writeText "proxy-suite-zapret2-custom.sh" (
pkgs.writeText "proxy-suite-zapret2" (
lib.concatStringsSep "\n" (
[ "zapret_custom_firewall_nft() {" ]
++ rules