mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-28 03:45:07 -06:00
* gnu/packages/patches/obs-modules-location.patch: Adjust for 31.0.1. * gnu/packages/video.scm (obs): Update to 31.0.1. [inputs]: Add rnnoise and uthash. [arguments]: Use cmake-next. Add "-DENABLE_NVENC=OFF" to configure-flags. Set OBS_EXECUTABLE_RPATH, OBS_LIBRARY_RPATH and OBS_MODULE_RPATH. Change-Id: Iaa8e7fceb04b3bf7e69cb0a040938ca90dfa46d0 Signed-off-by: Andreas Enge <andreas@enge.fr>
27 lines
1 KiB
Diff
27 lines
1 KiB
Diff
From d250434e6c8eb4f8c8cb47ef3cc6e6de8fa8f828 Mon Sep 17 00:00:00 2001
|
|
From: Alexey Abramov <levenson@mmer.org>
|
|
Date: Fri, 15 Jan 2021 17:07:17 +0100
|
|
Subject: [PATCH] Use environment variable for a default module location
|
|
|
|
diff --git a/libobs/obs-nix.c b/libobs/obs-nix.c
|
|
index 382fa0546..481ea0f14 100644
|
|
--- a.c 2025-02-10 12:48:39.885858056 +0800
|
|
+++ b.c 2025-02-10 12:57:18.913869843 +0800
|
|
@@ -83,6 +83,17 @@ void add_default_module_paths(void)
|
|
bfree(module_bin_path);
|
|
bfree(module_data_path);
|
|
|
|
+ module_bin_path = getenv("OBS_PLUGINS_DIRECTORY");
|
|
+ module_data_path = getenv("OBS_PLUGINS_DATA_DIRECTORY");
|
|
+ if (module_bin_path && module_data_path) {
|
|
+ struct dstr dstr_data_directory;
|
|
+ dstr_init_copy(&dstr_data_directory, module_data_path);
|
|
+ dstr_cat(&dstr_data_directory, "/%module%");
|
|
+ obs_add_module_path(module_bin_path, dstr_data_directory.array);
|
|
+ dstr_free(&dstr_data_directory);
|
|
+ return;
|
|
+ }
|
|
+
|
|
for (int i = 0; i < module_patterns_size; i++) {
|
|
obs_add_module_path(module_bin[i], module_data[i]);
|
|
}
|