tv ejabberd: change YAML formatting style
This commit is contained in:
parent
3d821647c1
commit
1291bb433b
@ -25,7 +25,32 @@ in {
|
|||||||
};
|
};
|
||||||
configFile = mkOption {
|
configFile = mkOption {
|
||||||
type = types.either types.package types.absolute-pathname;
|
type = types.either types.package types.absolute-pathname;
|
||||||
default = settingsFormat.generate "ejabberd.yaml" cfg.settings;
|
default =
|
||||||
|
(settingsFormat.generate "ejabberd.yaml" cfg.settings)
|
||||||
|
# XXX ejabberd cannot parse MQTT topic filters enclosed in single
|
||||||
|
# quotes. By changing the YAML formatting style, double quotes will
|
||||||
|
# be used instead.
|
||||||
|
#
|
||||||
|
# Related error message:
|
||||||
|
# Invalid value of option modules->mod_mqtt->access_publish:
|
||||||
|
# Malformed topic filter
|
||||||
|
#
|
||||||
|
.overrideAttrs (old: {
|
||||||
|
nativeBuildInputs =
|
||||||
|
filter
|
||||||
|
(pkg: (parseDrvName pkg.name).name != "remarshal")
|
||||||
|
old.nativeBuildInputs
|
||||||
|
++
|
||||||
|
singleton (pkgs.symlinkJoin {
|
||||||
|
name = "remarshal";
|
||||||
|
paths = [
|
||||||
|
(pkgs.writeDashBin "json2yaml" ''
|
||||||
|
exec ${pkgs.remarshal}/bin/json2yaml --yaml-style \> "$@"
|
||||||
|
'')
|
||||||
|
pkgs.remarshal
|
||||||
|
];
|
||||||
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
ciphers = mkOption {
|
ciphers = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
|
Loading…
Reference in New Issue
Block a user