@@ -1,8 +1,8 @@
1−{ lib, python3Packages, fetchFromGitHub, fetchpatch }:
1+{ lib, python3, python3Packages, fetchFromGitHub, fetchpatch }:
22
33with python3Packages;
44
5−buildPythonApplication rec {
5+toPythonModule (buildPythonApplication rec {
66 pname = "searx";
77 version = "0.17.0";
88
@@ -34,10 +34,16 @@ buildPythonApplication rec {
3434 rm tests/test_robot.py # A variable that is imported is commented out
3535 '';
3636
37+ postInstall = ''
38+ # Create a symlink for easier access to static data
39+ mkdir -p $out/share
40+ ln -s ../${python3.sitePackages}/searx/static $out/share/
41+ '';
42+
3743 meta = with lib; {
3844 homepage = "https://github.com/asciimoo/searx";
3945 description = "A privacy-respecting, hackable metasearch engine";
4046 license = licenses.agpl3Plus;
4147 maintainers = with maintainers; [ matejc fpletz globin danielfullmer ];
4248 };
43−}
49+})