about summary refs log tree commit diff
path: root/machines/profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2017-02-12 00:11:05 +0100
committerProfpatsch <mail@profpatsch.de>2017-02-12 00:11:05 +0100
commitb41d61502137624d47b5894be77e06b2084f8208 (patch)
tree478445a6e185db8508f807759e6def7d04a2f4f4 /machines/profpatsch
parente944c9baf5844c0163a4947af1535ea45e524e12 (diff)
machines/katara: searx anti-soundcloud patch
Soundcloud sometimes fails startup of searx, since it’s not actively used here
it’s patched out until upstream resolves the issue.
Diffstat (limited to 'machines/profpatsch')
-rw-r--r--machines/profpatsch/patches/searx-rm-soundcloud.patch15
-rw-r--r--machines/profpatsch/patches/searx-secret-key.patch (renamed from machines/profpatsch/patches/searx_secret_key.patch)0
-rw-r--r--machines/profpatsch/pkgs.nix5
3 files changed, 19 insertions, 1 deletions
diff --git a/machines/profpatsch/patches/searx-rm-soundcloud.patch b/machines/profpatsch/patches/searx-rm-soundcloud.patch
new file mode 100644
index 00000000..35b427b9
--- /dev/null
+++ b/machines/profpatsch/patches/searx-rm-soundcloud.patch
@@ -0,0 +1,15 @@
+diff --git a/searx/settings.yml b/searx/settings.yml
+index 053cb44..48a542b 100644
+--- a/searx/settings.yml
++++ b/searx/settings.yml
+@@ -437,10 +437,6 @@ engines:
+     engine : scanr_structures
+     disabled : True
+ 
+-  - name : soundcloud
+-    engine : soundcloud
+-    shortcut : sc
+-
+   - name : stackoverflow
+     engine : stackoverflow
+     shortcut : st
diff --git a/machines/profpatsch/patches/searx_secret_key.patch b/machines/profpatsch/patches/searx-secret-key.patch
index f7ff9fe5..f7ff9fe5 100644
--- a/machines/profpatsch/patches/searx_secret_key.patch
+++ b/machines/profpatsch/patches/searx-secret-key.patch
diff --git a/machines/profpatsch/pkgs.nix b/machines/profpatsch/pkgs.nix
index 45ce34f4..a220aed4 100644
--- a/machines/profpatsch/pkgs.nix
+++ b/machines/profpatsch/pkgs.nix
@@ -65,7 +65,10 @@ let
   xmpp-client = pkgs.callPackage (import ./xmpp-client.nix myLib.philip.home "irc/xmppOla.wtf") { inherit (pkgs) xmpp-client; };
 
   searx = pkgs.pythonPackages.searx.overrideDerivation (old: {
-    patches = old.patches or [] ++ [ ./patches/searx_secret_key.patch ];
+    patches = old.patches or [] ++ [
+      ./patches/searx-secret-key.patch
+      ./patches/searx-rm-soundcloud.patch
+    ];
   });
 
   # A ghci with some sane default packages in scope, & hoogle