Unverified Commit be7c022f authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #231563 from devusb/plex-mpv-shim

plex-mpv-shim: add shader packs
parents 4ae51c77 ca89dec4
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "mpv-shim-default-shaders";
  version = "2.1.0";

  src = fetchFromGitHub {
    owner = "iwalton3";
    repo = "default-shader-pack";
    rev = "v${version}";
    sha256 = "sha256-BM2GvmUoWQUUMH464YIIqu5A1t1B+otbJxAGFbySuq8=";
  };

  installPhase = ''
    mkdir -p $out/share/${pname}
    cp -r shaders *.json $out/share/${pname}
  '';

  meta = with lib; {
    homepage = "https://github.com/iwalton3/default-shader-pack";
    description = "Preconfigured set of MPV shaders and configurations for MPV Shim media clients.";
    license = with licenses; [
      gpl3Plus
      mit
      unlicense
    ];
    maintainers = with maintainers; [ devusb ];
  };
}
+9 −2
Original line number Diff line number Diff line
{ lib, buildPythonApplication, fetchFromGitHub, mpv, requests, python-mpv-jsonipc, pystray, tkinter
, wrapGAppsHook, gobject-introspection }:
{ lib, buildPythonApplication, fetchFromGitHub, python, mpv, requests, python-mpv-jsonipc, pystray, tkinter
, wrapGAppsHook, gobject-introspection, mpv-shim-default-shaders }:

buildPythonApplication rec {
  pname = "plex-mpv-shim";
@@ -25,12 +25,19 @@ buildPythonApplication rec {
  '';
  dontWrapGApps = true;

  postInstall = ''
    # put link to shaders where upstream package expects them
    ln -s ${mpv-shim-default-shaders}/share/mpv-shim-default-shaders $out/${python.sitePackages}/plex_mpv_shim/default_shader_pack
  '';

  # does not contain tests
  doCheck = false;

  meta = with lib; {
    homepage = "https://github.com/iwalton3/plex-mpv-shim";
    description = "Allows casting of videos to MPV via the Plex mobile and web app";
    maintainers = with maintainers; [ devusb ];
    license = licenses.mit;
    platforms = platforms.linux;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -32714,6 +32714,8 @@ with pkgs;
  open-in-mpv = callPackage ../applications/video/open-in-mpv { };
  mpv-shim-default-shaders = callPackage ../applications/video/mpv-shim-default-shaders { };
  mrpeach = callPackage ../applications/audio/pd-plugins/mrpeach { };
  mtpaint = callPackage ../applications/graphics/mtpaint { };