Merge pull request #132257 from Zopieux/simple-mpv-webui
mpvScripts.simple-mpv-webui: 1.0.0 -> 2.1.0
This commit is contained in:
commit
44db812a14
|
@ -260,6 +260,7 @@ in
|
||||||
morty = handleTest ./morty.nix {};
|
morty = handleTest ./morty.nix {};
|
||||||
mosquitto = handleTest ./mosquitto.nix {};
|
mosquitto = handleTest ./mosquitto.nix {};
|
||||||
mpd = handleTest ./mpd.nix {};
|
mpd = handleTest ./mpd.nix {};
|
||||||
|
mpv = handleTest ./mpv.nix {};
|
||||||
mumble = handleTest ./mumble.nix {};
|
mumble = handleTest ./mumble.nix {};
|
||||||
musescore = handleTest ./musescore.nix {};
|
musescore = handleTest ./musescore.nix {};
|
||||||
munin = handleTest ./munin.nix {};
|
munin = handleTest ./munin.nix {};
|
||||||
|
|
28
nixos/tests/mpv.nix
Normal file
28
nixos/tests/mpv.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
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.mpv-with-scripts.override {
|
||||||
|
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}")
|
||||||
|
'';
|
||||||
|
})
|
|
@ -2,13 +2,13 @@
|
||||||
, fetchFromGitHub }:
|
, fetchFromGitHub }:
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "simple-mpv-ui";
|
pname = "simple-mpv-ui";
|
||||||
version = "1.0.0";
|
version = "2.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "open-dynaMIX";
|
owner = "open-dynaMIX";
|
||||||
repo = "simple-mpv-webui";
|
repo = "simple-mpv-webui";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1glrnnl1slcl0ri0zs4j64lc9aa52p9ffh6av0d81fk95nm98917";
|
sha256 = "1z0y8sdv5mbxznxqh43w5592ym688vkvqg7w26p8cinrhf09pbw8";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
@ -21,7 +21,7 @@ stdenvNoCC.mkDerivation rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A web based user interface with controls for the mpv mediaplayer";
|
description = "A web based user interface with controls for the mpv mediaplayer";
|
||||||
homepage = "https://github.com/open-dynaMIX/simple-mpv-webui";
|
homepage = "https://github.com/open-dynaMIX/simple-mpv-webui";
|
||||||
maintainers = [ maintainers.cript0nauta ];
|
maintainers = with maintainers; [ cript0nauta zopieux ];
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
You can access the webui when accessing http://127.0.0.1:8080 or
|
You can access the webui when accessing http://127.0.0.1:8080 or
|
||||||
http://[::1]:8080 in your webbrowser. By default it listens on
|
http://[::1]:8080 in your webbrowser. By default it listens on
|
||||||
|
|
Loading…
Reference in a new issue