fix _cloudflare plugins

This commit is contained in:
pazpi 2024-07-16 10:23:49 +02:00
parent b80563f0ed
commit 0cc7afa2eb
No known key found for this signature in database
GPG key ID: 0942571C4B9966BE

View file

@ -16,8 +16,10 @@ let
screenshots = [ ffmpeg ]; screenshots = [ ffmpeg ];
}; };
python = with pkgs; (python312.withPackages (p: with p; [ cloudscraper cfscrape ]));
phpPluginDependencies = with pkgs; { phpPluginDependencies = with pkgs; {
_cloudflare = [ python3 ]; _cloudflare = [ python ];
}; };
getPluginDependencies = dependencies: concatMap (p: attrByPath [ p ] [ ] dependencies); getPluginDependencies = dependencies: concatMap (p: attrByPath [ p ] [ ] dependencies);
@ -194,6 +196,7 @@ in
"id" => "${pkgs.coreutils}/bin/id", // Something like /usr/bin/id. If empty, will be found in PATH. "id" => "${pkgs.coreutils}/bin/id", // Something like /usr/bin/id. If empty, will be found in PATH.
"stat" => "${pkgs.coreutils}/bin/stat", // Something like /usr/bin/stat. If empty, will be found in PATH. "stat" => "${pkgs.coreutils}/bin/stat", // Something like /usr/bin/stat. If empty, will be found in PATH.
"pgrep" => "${pkgs.procps}/bin/pgrep", // TODO why can't we use phpEnv.PATH "pgrep" => "${pkgs.procps}/bin/pgrep", // TODO why can't we use phpEnv.PATH
"python" => "${python}/bin/python3",
); );
$localhosts = array( // list of local interfaces $localhosts = array( // list of local interfaces