fix(searx): override some python deps
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
2d559bdf74
commit
4927481b25
1 changed files with 42 additions and 7 deletions
|
@ -9,13 +9,48 @@ in {
|
||||||
services.searx = {
|
services.searx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
package = pkgs.searxng.overrideAttrs (o: {
|
package =
|
||||||
postInstall = ''
|
(pkgs.searxng.override {
|
||||||
${o.postInstall or ""}
|
# FIXME: https://github.com/NixOS/nixpkgs/issues/380351
|
||||||
# Replace logo
|
python3 = pkgs.python3.override {
|
||||||
cp ${./logo.png} $out/${pkgs.python3.sitePackages}/searx/static/themes/simple/img/searxng.png
|
packageOverrides = pyFinal: pyPrev: {
|
||||||
'';
|
httpx = pyPrev.httpx.overridePythonAttrs (o: rec {
|
||||||
});
|
version = "0.27.2";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "encode";
|
||||||
|
repo = o.pname;
|
||||||
|
tag = version;
|
||||||
|
hash = "sha256-N0ztVA/KMui9kKIovmOfNTwwrdvSimmNkSvvC+3gpck=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
starlette = pyPrev.starlette.overridePythonAttrs (o: rec {
|
||||||
|
version = "0.41.2";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "encode";
|
||||||
|
repo = "starlette";
|
||||||
|
tag = version;
|
||||||
|
hash = "sha256-ZNB4OxzJHlsOie3URbUnZywJbqOZIvzxS/aq7YImdQ0=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
httpx-socks = pyPrev.httpx-socks.overridePythonAttrs (o: rec {
|
||||||
|
version = "0.9.2";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "romis2012";
|
||||||
|
repo = "httpx-socks";
|
||||||
|
tag = "v${version}";
|
||||||
|
hash = "sha256-PUiciSuDCO4r49st6ye5xPLCyvYMKfZY+yHAkp5j3ZI=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
.overrideAttrs (o: {
|
||||||
|
postInstall = ''
|
||||||
|
${o.postInstall or ""}
|
||||||
|
# Replace logo
|
||||||
|
cp ${./logo.png} $out/${pkgs.python3.sitePackages}/searx/static/themes/simple/img/searxng.png
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
|
||||||
environmentFile = config.sops.secrets.searxng.path;
|
environmentFile = config.sops.secrets.searxng.path;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue