mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 00:34:00 +00:00
searx: patch to fix a crash
If the `default_doi_resolver` and `use_default_settings` are used together searx crashes.
This commit is contained in:
parent
6a8843c758
commit
2a90b3329b
@ -1,4 +1,4 @@
|
||||
{ lib, nixosTests, python3, python3Packages, fetchFromGitHub }:
|
||||
{ lib, nixosTests, python3, python3Packages, fetchFromGitHub, fetchpatch }:
|
||||
|
||||
with python3Packages;
|
||||
|
||||
@ -14,6 +14,14 @@ toPythonModule (buildPythonApplication rec {
|
||||
sha256 = "0ghkx8g8jnh8yd46p4mlbjn2zm12nx27v7qflr4c8xhlgi0px0mh";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix a crash, remove with the next update
|
||||
(fetchpatch {
|
||||
url = "https://github.com/searx/searx/commit/9c10b150963babb7f0b52081693a42b2e61eede9.patch";
|
||||
sha256 = "0svp8799628wja2hq59da6rxqi99am8p6hb8y27ciwzsjz0wwba7";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's/==.*$//' requirements.txt
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user