mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
26 lines
465 B
Nix
26 lines
465 B
Nix
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
name = "icecast";
|
|
meta = {
|
|
inherit (pkgs.icecast.meta) maintainers;
|
|
};
|
|
|
|
nodes.machine = {
|
|
services.icecast = {
|
|
enable = true;
|
|
hostname = "nixos.test";
|
|
admin.password = "test";
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("icecast.service")
|
|
machine.wait_for_open_port(8000)
|
|
machine.succeed("curl -fail http://localhost:8000 | grep -q 'DO NOT ATTEMPT TO PARSE ICECAST HTML OUTPUT'")
|
|
'';
|
|
}
|