1{
2 lib,
3 pkgs,
4 ...
5}:
6{
7 name = "slipshow presentation test";
8
9 meta.maintainers = with lib.maintainers; [ ethancedwards8 ];
10
11 nodes.machine = {
12 environment.systemPackages = with pkgs; [ slipshow ];
13
14 environment.etc."slipshow".source = pkgs.fetchFromGitHub {
15 owner = "meithecatte";
16 repo = "bbslides";
17 rev = "ce1c08cafa71ae36dda8cc581956548b8386ae16";
18 hash = "sha256-sOydmvtDeMhNejDkwlsXdrbwtqN6lcNnzTnGzBVRFxA=";
19 };
20 };
21
22 testScript =
23 { nodes, ... }:
24 ''
25 start_all()
26
27 # it may take around a minute to compile the file and serve it
28 machine.succeed("slipshow serve /etc/slipshow/bbslides.md &>/dev/null &")
29
30 # slipshow serves defaultly on :8080 and unfortunately cannot
31 # be changed currently
32 machine.wait_for_open_port(8080)
33 machine.succeed("curl -i 0.0.0.0:8080")
34 '';
35}