-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
freeswitch: expose compilation option to enable postgres support #54593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@GrahamcOfBorg build freeswitch |
I think it's fine to turn it on by default, the closure size increase is negligible. |
3061d41
to
27a8947
Compare
Ok, I've made postgres the default. @GrahamcOfBorg build freeswitch |
@GrahamcOfBorg build freeswitch (ofborg only does requests from known people) |
, SystemConfiguration | ||
}: | ||
|
||
with stdenv.lib; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that you use with stdenv.lib;
twice.
You may add lib
as derivation input (next to stdenv
), and refer as lib.optionals
in all other places. This is probably better alternative than just remove second duplicate.
27a8947
to
5ff84d8
Compare
5ff84d8
to
efc6258
Compare
@danbst Good catch, thank you. |
I hope it works. The problem I've got most likely isn't related to this PR:
|
@danbst Yes... there are some annoyances with freeswitch. It works if you supply a configuration with appropriate values for log dirs, pid files, etc.. I'd like to slowly chip away at some of these issues, but only have limited time (and I'm not using freeswitch on NixOS, and have no use for a NixOS service module at this time). |
Motivation for this change
To run freeswitch with postgresql backend.
Tested with
nix-build -E 'with import ./. { }; freeswitch.override { enablePostgres = true; }'
Not sure if enabling postgres should be the default or not. It would simplify my life it it was (closure size 135 to 142 MiB with postgres)
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)