Merge pull request #112295 from thelegy/snapserver-fix-buffer-options

nixos/snapserver: Fix buffer options not coercible to str
This commit is contained in:
Sandro 2021-02-07 17:10:34 +01:00 committed by GitHub
commit a64370c164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,8 +48,8 @@ let
++ [ "--stream.port ${toString cfg.port}" ] ++ [ "--stream.port ${toString cfg.port}" ]
++ optionalNull cfg.sampleFormat "--stream.sampleformat ${cfg.sampleFormat}" ++ optionalNull cfg.sampleFormat "--stream.sampleformat ${cfg.sampleFormat}"
++ optionalNull cfg.codec "--stream.codec ${cfg.codec}" ++ optionalNull cfg.codec "--stream.codec ${cfg.codec}"
++ optionalNull cfg.streamBuffer "--stream.stream_buffer ${cfg.streamBuffer}" ++ optionalNull cfg.streamBuffer "--stream.stream_buffer ${toString cfg.streamBuffer}"
++ optionalNull cfg.buffer "--stream.buffer ${cfg.buffer}" ++ optionalNull cfg.buffer "--stream.buffer ${toString cfg.buffer}"
++ optional cfg.sendToMuted "--stream.send_to_muted" ++ optional cfg.sendToMuted "--stream.send_to_muted"
# tcp json rpc # tcp json rpc
++ [ "--tcp.enabled ${toString cfg.tcp.enable}" ] ++ [ "--tcp.enabled ${toString cfg.tcp.enable}" ]