anchor.diff:            };
           };
         };
  +    };
  +    client = {
  +      environment.systemPackages = [ pkgs.snapcast ];
       };
     };
   
  
positive.code:   tcpPort = 10005;
    httpPort = 10080;
    tcpStreamPort = 10006;
  in {
    name = "snapcast";
    meta = with pkgs.lib.maintainers; {
  
negative.code:         server.succeed(
              "curl --fail http://localhost:${toString httpPort}/jsonrpc -d '{json.dumps(get_rpc_version)}'"
          )
  
      with subtest("test a connection"):
          client.execute("systemd-run snapclient -h server -p ${toString port}")
          server.wait_until_succeeds(
              "journalctl -o cat -u snapserver.service | grep -q 'Hello from'"
          )
          client.wait_until_succeeds("journalctl -o cat -u run-\* | grep -q ${toString bufferSize}")
    '';
  })
  