mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
a8576d4053
It has been replaced by wrapMpv in 2020-05-22.
28 lines
619 B
Nix
28 lines
619 B
Nix
import ./make-test-python.nix ({ lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
port = toString 4321;
|
|
in
|
|
{
|
|
name = "mpv";
|
|
meta.maintainers = with maintainers; [ zopieux ];
|
|
|
|
nodes.machine =
|
|
{ pkgs, ... }:
|
|
{
|
|
environment.systemPackages = [
|
|
pkgs.curl
|
|
(pkgs.wrapMpv pkgs.mpv-unwrapped {
|
|
scripts = [ pkgs.mpvScripts.simple-mpv-webui ];
|
|
})
|
|
];
|
|
};
|
|
|
|
testScript = ''
|
|
machine.execute("set -m; mpv --script-opts=webui-port=${port} --idle=yes &")
|
|
machine.wait_for_open_port(${port})
|
|
assert "<title>simple-mpv-webui" in machine.succeed("curl -s localhost:${port}")
|
|
'';
|
|
})
|