ngi-nix / searx-thegreenopenweb

Archived: the Private searx project is no longer being developed
https://asciimoo.github.io/searx/
GNU Affero General Public License v3.0
0 stars 0 forks source link

SoN packaging thegreenweb code as Searx plugin #1

Open efim opened 3 years ago

efim commented 3 years ago

What needs to be packaged:

The branch ca-green-plugin is lagging behind Searx master by a lot

Searx now has some documentation on setting up "external" plugins: https://searx.github.io/searx/dev/plugins.html

And there's an example https://github.com/asciimoo/searx_external_plugin_example

Maybe there's a good way to have general solution that would allow easy development of external plugins with flake

efim commented 3 years ago

Outline of the problem:

@gytis-ivaskevicius do you know of any projects in nixpkgs that have similar setup - allowing separate projects to be inserted as plugins, with these plugins being pakcaged with nix also?

efim commented 3 years ago

While looking for other external plugins for Searx I found separate repository that's propably setting up "thegreenwebfoundation" work as a 'external plugin'

it contains some additonal development, maybe it is a great candidate for the packaging

other repos that mention Searx & plugin seem to be plugins for /other/ projects that integrate searx into them (i.e not python code for Searx)

maybe this one is for Searx, but I'm not sure

There's discussion between TGWF developer & Searx team, will try to figure out what's current stance of Searx on plugins https://github.com/searx/searx/issues/1881

it seems that right now it's hard to find other solutions written as searx plugins

gytis-ivaskevicius commented 3 years ago

We usually have feature flags for optional features as such. Here an example: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/ffmpeg-full/default.nix