Merge pull request #231563 from devusb/plex-mpv-shim
plex-mpv-shim: add shader packs
This commit is contained in:
commit
be7c022f14
29
pkgs/applications/video/mpv-shim-default-shaders/default.nix
Normal file
29
pkgs/applications/video/mpv-shim-default-shaders/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{ 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;
|
||||
};
|
||||
}
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user