Files
nixpkgs/nixos/tests/slipshow.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

36 lines
868 B
Nix

{
lib,
pkgs,
...
}:
{
name = "slipshow presentation test";
meta.maintainers = with lib.maintainers; [ ethancedwards8 ];
nodes.machine = {
environment.systemPackages = with pkgs; [ slipshow ];
environment.etc."slipshow".source = pkgs.fetchFromGitHub {
owner = "meithecatte";
repo = "bbslides";
rev = "ce1c08cafa71ae36dda8cc581956548b8386ae16";
hash = "sha256-sOydmvtDeMhNejDkwlsXdrbwtqN6lcNnzTnGzBVRFxA=";
};
};
testScript =
{ nodes, ... }:
''
start_all()
# it may take around a minute to compile the file and serve it
machine.succeed("slipshow serve /etc/slipshow/bbslides.md &>/dev/null &")
# slipshow serves defaultly on :8080 and unfortunately cannot
# be changed currently
machine.wait_for_open_port(8080)
machine.succeed("curl -i 0.0.0.0:8080")
'';
}