about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/huggle/01-extensions.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/huggle/01-extensions.patch')
-rw-r--r--nixpkgs/pkgs/applications/misc/huggle/01-extensions.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/huggle/01-extensions.patch b/nixpkgs/pkgs/applications/misc/huggle/01-extensions.patch
new file mode 100644
index 000000000000..aa36bb0356f7
--- /dev/null
+++ b/nixpkgs/pkgs/applications/misc/huggle/01-extensions.patch
@@ -0,0 +1,13 @@
+diff --git a/src/huggle_core/definitions_prod.hpp b/src/huggle_core/definitions_prod.hpp
+index 1fc5b1fb..17881ade 100644
+--- a/src/huggle_core/definitions_prod.hpp
++++ b/src/huggle_core/definitions_prod.hpp
+@@ -216,7 +216,7 @@ namespace std { typedef decltype(nullptr) nullptr_t; }
+     #define HUGGLE_GLOBAL_EXTENSION_PATH            QCoreApplication::applicationDirPath() + "/extensions"
+ #elif defined __linux__
+     #define HUGGLE_UPDATER_PLATFORM_TYPE            "linux"
+-    #define HUGGLE_GLOBAL_EXTENSION_PATH            "/usr/local/share/huggle/extensions"
++    #define HUGGLE_GLOBAL_EXTENSION_PATH            "@out@/share/huggle/extensions"
+ #elif defined HUGGLE_WIN
+     // This is needed by yaml cpp library, otherwise it won't build with MSVC
+     #define YAML_CPP_DLL