git.iko.soy/typeable/nixpkgs
on master help sign in
searx: make package friendly towards nginx/uWSGI

- Link the /static directory to make it easier to serve - Export searx module for use in uWSGI (just import the module)

commit92d55d57ebb3a186ea23b66f3587a36bee662785 authorrnhmjoj <rnhmjoj@inventati.org> dateWed 4 Nov 2020, 19:17 (6 years ago) parentb7ca2d1
1 file changed+9−3
pkgs/servers/web-apps/searx/default.nix+9−3
pkgs/servers/web-apps/searx/default.nix+9−3
@@ -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+})