mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
nixos/services.snapserver: fix regression introduced in #339099 by renaming local function
This commit is contained in:
parent
3f2126dae7
commit
48d6e1118b
@ -30,12 +30,12 @@ let
|
||||
lib.optionalString (val != null) "${val}";
|
||||
os' = prefix: val:
|
||||
lib.optionalString (val != null) (prefix + "${val}");
|
||||
flatten = key: value:
|
||||
toQueryString = key: value:
|
||||
"&${key}=${value}";
|
||||
in
|
||||
"--stream.stream=\"${opt.type}://" + os opt.location + "?" + os' "name=" name
|
||||
+ os' "&sampleformat=" opt.sampleFormat + os' "&codec=" opt.codec
|
||||
+ lib.concatStrings (lib.mapAttrsToList lib.flatten opt.query) + "\"";
|
||||
+ lib.concatStrings (lib.mapAttrsToList toQueryString opt.query) + "\"";
|
||||
|
||||
optionalNull = val: ret:
|
||||
lib.optional (val != null) ret;
|
||||
|
Loading…
Reference in New Issue
Block a user