mpvScripts.simple-mpv-webui: 1.0.0 -> 2.1.0

This also adds a test. The current packaged version (1.0.0) is broken,
it cannot find relevant files.

+32 -3
+1
nixos/tests/all-tests.nix
··· 259 259 morty = handleTest ./morty.nix {}; 260 260 mosquitto = handleTest ./mosquitto.nix {}; 261 261 mpd = handleTest ./mpd.nix {}; 262 + mpv = handleTest ./mpv.nix {}; 262 263 mumble = handleTest ./mumble.nix {}; 263 264 musescore = handleTest ./musescore.nix {}; 264 265 munin = handleTest ./munin.nix {};
+28
nixos/tests/mpv.nix
··· 1 + import ./make-test-python.nix ({ lib, ... }: 2 + 3 + with lib; 4 + 5 + let 6 + port = toString 4321; 7 + in 8 + { 9 + name = "mpv"; 10 + meta.maintainers = with maintainers; [ zopieux ]; 11 + 12 + nodes.machine = 13 + { pkgs, ... }: 14 + { 15 + environment.systemPackages = [ 16 + pkgs.curl 17 + (pkgs.mpv-with-scripts.override { 18 + scripts = [ pkgs.mpvScripts.simple-mpv-webui ]; 19 + }) 20 + ]; 21 + }; 22 + 23 + testScript = '' 24 + machine.execute("set -m; mpv --script-opts=webui-port=${port} --idle=yes &") 25 + machine.wait_for_open_port(${port}) 26 + assert "<title>simple-mpv-webui" in machine.succeed("curl -s localhost:${port}") 27 + ''; 28 + })
+3 -3
pkgs/applications/video/mpv/scripts/simple-mpv-webui.nix
··· 2 2 , fetchFromGitHub }: 3 3 stdenvNoCC.mkDerivation rec { 4 4 pname = "simple-mpv-ui"; 5 - version = "1.0.0"; 5 + version = "2.1.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "open-dynaMIX"; 9 9 repo = "simple-mpv-webui"; 10 10 rev = "v${version}"; 11 - sha256 = "1glrnnl1slcl0ri0zs4j64lc9aa52p9ffh6av0d81fk95nm98917"; 11 + sha256 = "1z0y8sdv5mbxznxqh43w5592ym688vkvqg7w26p8cinrhf09pbw8"; 12 12 }; 13 13 14 14 dontBuild = true; ··· 21 21 meta = with lib; { 22 22 description = "A web based user interface with controls for the mpv mediaplayer"; 23 23 homepage = "https://github.com/open-dynaMIX/simple-mpv-webui"; 24 - maintainers = [ maintainers.cript0nauta ]; 24 + maintainers = with maintainers; [ cript0nauta zopieux ]; 25 25 longDescription = '' 26 26 You can access the webui when accessing http://127.0.0.1:8080 or 27 27 http://[::1]:8080 in your webbrowser. By default it listens on