-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #179621 from Kranzes/searxng
searxng: init at unstable-2022-06-29
- Loading branch information
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ lib | ||
, python3 | ||
, python3Packages | ||
, fetchFromGitHub | ||
}: | ||
|
||
python3Packages.buildPythonApplication rec { | ||
pname = "searxng"; | ||
version = "unstable-2022-06-29"; | ||
|
||
src = fetchFromGitHub { | ||
owner = pname; | ||
repo = pname; | ||
rev = "107006515ee9fe9cad9a6f6387db658953d32486"; | ||
sha256 = "sha256-uV5XiOVuES9wuBx9S8WhM8jhuxRHlSMvW5Ki8WlDwfM="; | ||
}; | ||
|
||
postPatch = '' | ||
sed -i 's/==.*$//' requirements.txt | ||
''; | ||
|
||
preBuild = '' | ||
export SEARX_DEBUG="true"; | ||
''; | ||
|
||
propagatedBuildInputs = with python3Packages; [ | ||
babel | ||
certifi | ||
python-dateutil | ||
flask | ||
flaskbabel | ||
brotli | ||
jinja2 | ||
langdetect | ||
lxml | ||
h2 | ||
pygments | ||
pyyaml | ||
redis | ||
uvloop | ||
setproctitle | ||
httpx | ||
httpx-socks | ||
markdown-it-py | ||
]; | ||
|
||
# tests try to connect to network | ||
doCheck = false; | ||
|
||
postInstall = '' | ||
# Create a symlink for easier access to static data | ||
mkdir -p $out/share | ||
ln -s ../${python3.sitePackages}/searx/static $out/share/ | ||
''; | ||
|
||
meta = with lib; { | ||
homepage = "https://github.com/searxng/searxng"; | ||
description = "A fork of Searx, a privacy-respecting, hackable metasearch engine"; | ||
license = licenses.agpl3Plus; | ||
maintainers = with maintainers; [ kranzes ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters