Unverified Commit a829e3a2 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

nixos/services.snapserver: fix regression introduced in #339099 by renaming...

nixos/services.snapserver: fix regression introduced in #339099 by renaming local function (#344243)
parents 949f8614 48d6e111
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;