Skip to content

Commit

Permalink
Merge pull request #179621 from Kranzes/searxng
Browse files Browse the repository at this point in the history
searxng: init at unstable-2022-06-29
  • Loading branch information
SuperSandro2000 authored Jul 16, 2022
2 parents 8f48571 + 7ba0e47 commit 2815ff9
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
62 changes: 62 additions & 0 deletions pkgs/servers/web-apps/searxng/default.nix
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23087,6 +23087,8 @@ with pkgs;

searx = callPackage ../servers/web-apps/searx { };

searxng = python3Packages.toPythonModule (callPackage ../servers/web-apps/searxng { });

selfoss = callPackage ../servers/web-apps/selfoss { };

shaarli = callPackage ../servers/web-apps/shaarli { };
Expand Down

0 comments on commit 2815ff9

Please sign in to comment.