git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #89262 from cript0nauta/simple-mpv-ui

mpvScripts.simple-mpv-webui: init at 1.0.0

commit0a63b5ae34c29f6c50db4acc0c11ebb6058372c7 authorMaximilian Bosch <maximilian@mbosch.me> dateWed 17 Jun 2020, 03:13 (6 years ago) parentf6ac90c5930a0e
4 files changed+44−1
maintainers/maintainer-list.nix+6 pkgs/applications/video/mpv/default.nix+4−1 pkgs/applications/video/mpv/scripts/simple-mpv-webui.nix+33 pkgs/top-level/all-packages.nix+1
maintainers/maintainer-list.nix+6
@@ -1616,6 +1616,12 @@
16161616 githubId = 12202789;
16171617 name = "CrazedProgrammer";
16181618 };
1619+ cript0nauta = {
1620+ email = "shareman1204@gmail.com";
1621+ github = "cript0nauta";
1622+ githubId = 1222362;
1623+ name = "Matías Lang";
1624+ };
16191625 cryptix = {
16201626 email = "cryptix@riseup.net";
16211627 github = "cryptix";
pkgs/applications/video/mpv/default.nix+4−1
@@ -39,7 +39,10 @@
3939, libpngSupport ? true, libpng ? null
4040, pulseSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null
4141, rubberbandSupport ? stdenv.isLinux, rubberband ? null
42−, sambaSupport ? stdenv.isLinux, samba ? null
42+# NOTE: samba support should be removed on the next mpv release, see also:
43+# https://github.com/NixOS/nixpkgs/pull/89145#issuecomment-636424362
44+# Please remove this line on the next mpv release.
45+, sambaSupport ? false, samba ? null
4346, screenSaverSupport ? true, libXScrnSaver ? null
4447, sdl2Support ? true, SDL2 ? null
4548, sndioSupport ? true, sndio ? null
pkgs/applications/video/mpv/scripts/simple-mpv-webui.nixnew file+33
@@ -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+
pkgs/top-level/all-packages.nix+1
@@ -21064,6 +21064,7 @@ in
2106421064 mpvScripts = recurseIntoAttrs {
2106521065 convert = callPackage ../applications/video/mpv/scripts/convert.nix {};
2106621066 mpris = callPackage ../applications/video/mpv/scripts/mpris.nix {};
21067+ simple-mpv-webui = callPackage ../applications/video/mpv/scripts/simple-mpv-webui.nix {};
2106721068 };
2106821069
2106921070 mrpeach = callPackage ../applications/audio/pd-plugins/mrpeach { };