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,7 +9,42 @@ in {
|
|||
services.searx = {
|
||||
enable = true;
|
||||
|
||||
package = pkgs.searxng.overrideAttrs (o: {
|
||||
package =
|
||||
(pkgs.searxng.override {
|
||||
# FIXME: https://github.com/NixOS/nixpkgs/issues/380351
|
||||
python3 = pkgs.python3.override {
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue