nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1commit 46479c52695cc5f8c01370fd2594468666c45c8e
2Author: rnhmjoj <rnhmjoj@inventati.org>
3Date: Sun Aug 3 00:18:47 2025 +0200
4
5 Fix the modules path at build time
6
7 The location of the modules is determined by reading the `module_path`
8 setting, which is set to "$out/lib/baresip/modules" when the
9 configuration file is generated during the first run. If the package is
10 updated and the store path changes, baresip breaks completely, forcing
11 the user to manually fix the configuration.
12
13 This patch fixes the location of the modules at build time, ignoring the
14 `module_path` setting, to avoid this issue.
15
16diff --git a/src/module.c b/src/module.c
17index 9f2135c6..b62d0bdd 100644
18--- a/src/module.c
19+++ b/src/module.c
20@@ -141,8 +141,7 @@ int module_init(const struct conf *conf)
21 if (!conf)
22 return EINVAL;
23
24- if (conf_get(conf, "module_path", &path))
25- pl_set_str(&path, ".");
26+ pl_set_str(&path, MOD_PATH);
27
28 err = conf_apply(conf, "module", module_handler, &path);
29 if (err)