tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
jellyfin-mpv-shim: 1.10.4 -> 2.0.0
Johannes Schleifenbaum
4 years ago
6c3ee279
4216cf5a
+23
-42
1 changed file
expand all
collapse all
unified
split
pkgs
applications
video
jellyfin-mpv-shim
default.nix
+23
-42
pkgs/applications/video/jellyfin-mpv-shim/default.nix
···
1
1
{ lib
2
2
, buildPythonApplication
3
3
-
, copyDesktopItems
4
3
, fetchPypi
5
5
-
, makeDesktopItem
6
6
-
, flask
7
4
, jellyfin-apiclient-python
8
5
, jinja2
9
6
, mpv
10
7
, pillow
11
8
, pydantic
12
12
-
, pyqtwebengine
13
9
, pystray
14
10
, python-mpv-jsonipc
15
11
, pywebview
16
16
-
, qt5
17
12
, tkinter
18
18
-
, werkzeug
19
13
}:
20
14
21
15
buildPythonApplication rec {
22
16
pname = "jellyfin-mpv-shim";
23
23
-
version = "1.10.4";
17
17
+
version = "2.0.0";
24
18
25
19
src = fetchPypi {
26
20
inherit pname version;
27
27
-
sha256 = "sha256-QMyb69S8Ln4X0oUuLpL6vtgxJwq8f+Q4ReNckrN4E+E=";
21
21
+
sha256 = "sha256-YAZnNSzgAGYSb45VINRCPeUUbbtuOp/bLbIqz/90W6g=";
28
22
};
29
23
30
24
propagatedBuildInputs = [
···
41
35
# display_mirror dependencies
42
36
jinja2
43
37
pywebview
44
44
-
45
45
-
# desktop dependencies
46
46
-
flask
47
47
-
pyqtwebengine
48
48
-
werkzeug
49
49
-
];
50
50
-
51
51
-
nativeBuildInputs = [
52
52
-
copyDesktopItems
53
53
-
qt5.wrapQtAppsHook
54
54
-
];
55
55
-
56
56
-
desktopItems = [
57
57
-
(makeDesktopItem {
58
58
-
name = "Jellyfin Desktop";
59
59
-
exec = "jellyfin-desktop";
60
60
-
icon = "jellyfin-desktop";
61
61
-
desktopName = "jellyfin-desktop";
62
62
-
comment = "MPV-based desktop and cast client for Jellyfin";
63
63
-
genericName = "MPV-based desktop and cast client for Jellyfin";
64
64
-
categories = "Video;AudioVideo;TV;Player";
65
65
-
})
66
38
];
67
39
68
40
# override $HOME directory:
···
82
54
--replace "notify_updates: bool = True" "notify_updates: bool = False"
83
55
'';
84
56
85
85
-
postInstall = ''
86
86
-
mkdir -p $out/share/pixmaps
87
87
-
cp jellyfin_mpv_shim/integration/jellyfin-256.png $out/share/pixmaps/jellyfin-desktop.png
88
88
-
'';
89
89
-
90
90
-
postFixup = ''
91
91
-
wrapQtApp $out/bin/jellyfin-desktop
92
92
-
wrapQtApp $out/bin/jellyfin-mpv-desktop
93
93
-
'';
94
94
-
95
57
# no tests
96
58
doCheck = false;
97
59
pythonImportsCheck = [ "jellyfin_mpv_shim" ];
98
60
99
61
meta = with lib; {
100
100
-
homepage = "https://github.com/jellyfin/jellyfin-desktop";
62
62
+
homepage = "https://github.com/jellyfin/jellyfin-mpv-shim";
101
63
description = "Allows casting of videos to MPV via the jellyfin mobile and web app";
102
102
-
license = licenses.gpl3;
64
64
+
longDescription = ''
65
65
+
Jellyfin MPV Shim is a client for the Jellyfin media server which plays media in the
66
66
+
MPV media player. The application runs in the background and opens MPV only
67
67
+
when media is cast to the player. The player supports most file formats, allowing you
68
68
+
to prevent needless transcoding of your media files on the server. The player also has
69
69
+
advanced features, such as bulk subtitle updates and launching commands on events.
70
70
+
'';
71
71
+
license = with licenses; [
72
72
+
# jellyfin-mpv-shim
73
73
+
gpl3Only
74
74
+
mit
75
75
+
76
76
+
# shader-pack licenses (github:iwalton3/default-shader-pack)
77
77
+
# KrigBilateral, SSimDownscaler, NNEDI3
78
78
+
gpl3Plus
79
79
+
# Anime4K, FSRCNNX
80
80
+
mit
81
81
+
# Static Grain
82
82
+
unlicense
83
83
+
];
103
84
maintainers = with maintainers; [ jojosch ];
104
85
};
105
86
}