jellyfin-mpv-shim: use fetchPypi which includes the shader pack
This commit is contained in:
parent
5854e45418
commit
474043fc5b
|
@ -1,20 +1,14 @@
|
||||||
{ lib, buildPythonApplication, fetchFromGitHub, callPackage
|
{ lib, buildPythonApplication, fetchPypi
|
||||||
, mpv, python-mpv-jsonipc, jellyfin-apiclient-python
|
, mpv, python-mpv-jsonipc, jellyfin-apiclient-python
|
||||||
, pillow, tkinter, pystray, jinja2, pywebview }:
|
, pillow, tkinter, pystray, jinja2, pywebview }:
|
||||||
|
|
||||||
let
|
|
||||||
shaderPack = callPackage ./shader-pack.nix {};
|
|
||||||
in
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "jellyfin-mpv-shim";
|
pname = "jellyfin-mpv-shim";
|
||||||
version = "1.7.1";
|
version = "1.7.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchPypi {
|
||||||
owner = "iwalton3";
|
inherit pname version;
|
||||||
repo = pname;
|
sha256 = "sha256-Fo1auMiYUgJrJGJII+FfHspcke0r/VSSXzGwVNIHtEE=";
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "0alrh5h3f8pq9mrq09jmpqa0yslxsjqwij6kwn24ggbwc10zkq75";
|
|
||||||
fetchSubmodules = true; # needed for display_mirror css file
|
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -33,11 +27,6 @@ buildPythonApplication rec {
|
||||||
rm jellyfin_mpv_shim/win_utils.py
|
rm jellyfin_mpv_shim/win_utils.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# link the default shader pack
|
|
||||||
ln -s ${shaderPack} jellyfin_mpv_shim/default_shader_pack
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
jellyfin-apiclient-python
|
jellyfin-apiclient-python
|
||||||
mpv
|
mpv
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
{ lib, stdenv, fetchFromGitHub }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "jellyfin-mpv-shim-shader-pack";
|
|
||||||
version = "1.0.0";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "iwalton3";
|
|
||||||
repo = "default-shader-pack";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "04y8gvjy4v3773b1kyan4dxqcf86b56x7v33m2k246jbn0rl2pgr";
|
|
||||||
};
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out
|
|
||||||
cp -a . $out
|
|
||||||
'';
|
|
||||||
|
|
||||||
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; [ mit lgpl3Plus unlicense ];
|
|
||||||
maintainers = with maintainers; [ jojosch ];
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue