chore: collapse packages
This commit is contained in:
29 files changed
+151
-111
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user