@@ -0,0 +1,33 @@
1+{ stdenv
2+, fetchFromGitHub }:
3+stdenv.mkDerivation rec {
4+ pname = "simple-mpv-ui";
5+ version = "1.0.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "open-dynaMIX";
9+ repo = "simple-mpv-webui";
10+ rev = "v${version}";
11+ sha256 = "1glrnnl1slcl0ri0zs4j64lc9aa52p9ffh6av0d81fk95nm98917";
12+ };
13+
14+ dontBuild = true;
15+ installPhase = ''
16+ mkdir -p $out/share/mpv/scripts
17+ cp -r webui.lua webui-page $out/share/mpv/scripts/
18+ '';
19+ passthru.scriptName = "webui.lua";
20+
21+ meta = with stdenv.lib; {
22+ description = "A web based user interface with controls for the mpv mediaplayer";
23+ homepage = "https://github.com/open-dynaMIX/simple-mpv-webui";
24+ maintainers = [ maintainers.cript0nauta ];
25+ longDescription = ''
26+ You can access the webui when accessing http://127.0.0.1:8080 or
27+ http://[::1]:8080 in your webbrowser. By default it listens on
28+ 0.0.0.0:8080 and [::0]:8080
29+ '';
30+ license = licenses.mit;
31+ };
32+}
33+