tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
xplayer: init at 2.4.0
tu-maurice
5 years ago
b9ae3890
6969ad40
+152
3 changed files
expand all
collapse all
unified
split
pkgs
applications
video
xplayer
default.nix
plparser.nix
top-level
all-packages.nix
+103
pkgs/applications/video/xplayer/default.nix
···
1
1
+
{ stdenv
2
2
+
, lib
3
3
+
, fetchFromGitHub
4
4
+
, autoreconfHook
5
5
+
, autoconf-archive
6
6
+
, clutter-gst
7
7
+
, clutter-gtk
8
8
+
, gettext
9
9
+
, glib
10
10
+
, gobject-introspection
11
11
+
, gst-plugins-bad
12
12
+
, gst-plugins-base
13
13
+
, gst-plugins-good
14
14
+
, gstreamer
15
15
+
, gtk-doc
16
16
+
, gtk3
17
17
+
, intltool
18
18
+
, itstool
19
19
+
, libpeas
20
20
+
, libxml2
21
21
+
, libxplayer-plparser
22
22
+
, pkg-config
23
23
+
, python3
24
24
+
, wrapGAppsHook
25
25
+
, xapps
26
26
+
, yelp-tools }:
27
27
+
28
28
+
let
29
29
+
pythonenv = python3.withPackages (ps: [
30
30
+
ps.pygobject3
31
31
+
ps.dbus-python # For one plugin
32
32
+
]);
33
33
+
in
34
34
+
35
35
+
stdenv.mkDerivation rec {
36
36
+
pname = "xplayer";
37
37
+
version = "2.4.0";
38
38
+
39
39
+
src = fetchFromGitHub {
40
40
+
owner = "linuxmint";
41
41
+
repo = pname;
42
42
+
rev = version;
43
43
+
sha256 = "1xcv6nr2gc0vji5afwy283v7bgx46kzgrq79hl8q9pz995qq2kbp";
44
44
+
};
45
45
+
46
46
+
# configure wants to find gst-inspect-1.0 via pkgconfig but
47
47
+
# the gstreamer toolsdir points to the wrong derivation output
48
48
+
postPatch = ''
49
49
+
substituteInPlace configure.ac \
50
50
+
--replace '$gst10_toolsdir/gst-inspect-1.0' '${gstreamer.dev}/bin/gst-inspect-1.0' \
51
51
+
'';
52
52
+
53
53
+
preBuild = ''
54
54
+
makeFlagsArray+=(
55
55
+
"INCLUDES=-I${glib.dev}/include/gio-unix-2.0"
56
56
+
"CFLAGS=-Wno-error" # Otherwise a lot of deprecated warnings are treated as error
57
57
+
)
58
58
+
'';
59
59
+
60
60
+
nativeBuildInputs = [
61
61
+
autoreconfHook
62
62
+
wrapGAppsHook
63
63
+
autoconf-archive
64
64
+
gettext
65
65
+
gtk-doc
66
66
+
intltool
67
67
+
itstool
68
68
+
pkg-config
69
69
+
yelp-tools
70
70
+
];
71
71
+
72
72
+
buildInputs = [
73
73
+
clutter-gst
74
74
+
clutter-gtk
75
75
+
glib
76
76
+
gobject-introspection
77
77
+
gst-plugins-bad
78
78
+
gst-plugins-base
79
79
+
gst-plugins-good
80
80
+
gstreamer
81
81
+
gtk3
82
82
+
libpeas
83
83
+
libxml2
84
84
+
libxplayer-plparser
85
85
+
pythonenv
86
86
+
xapps
87
87
+
# to satisfy configure script
88
88
+
pythonenv.pkgs.pygobject3
89
89
+
];
90
90
+
91
91
+
postInstall = ''
92
92
+
wrapProgram $out/bin/xplayer \
93
93
+
--prefix PATH : ${lib.makeBinPath [ pythonenv ]}
94
94
+
'';
95
95
+
96
96
+
meta = with lib; {
97
97
+
description = "A generic media player from Linux Mint";
98
98
+
license = with licenses; [ gpl2Plus lgpl21Plus ];
99
99
+
homepage = "https://github.com/linuxmint/xplayer";
100
100
+
maintainers = with maintainers; [ tu-maurice ];
101
101
+
platforms = platforms.linux;
102
102
+
};
103
103
+
}
+42
pkgs/applications/video/xplayer/plparser.nix
···
1
1
+
{ stdenv
2
2
+
, lib
3
3
+
, fetchFromGitHub
4
4
+
, intltool
5
5
+
, gobject-introspection
6
6
+
, gmime
7
7
+
, libxml2
8
8
+
, libsoup
9
9
+
, pkg-config
10
10
+
}:
11
11
+
12
12
+
stdenv.mkDerivation rec {
13
13
+
pname = "xplayer-plparser";
14
14
+
version = "1.0.2";
15
15
+
16
16
+
src = fetchFromGitHub {
17
17
+
owner = "linuxmint";
18
18
+
repo = pname;
19
19
+
rev = version;
20
20
+
sha256 = "1i7sld8am6b1wwbpfb18v7qp17vk2a5p8xcfds50yznr30lddsb2";
21
21
+
};
22
22
+
23
23
+
nativeBuildInputs = [
24
24
+
intltool
25
25
+
pkg-config
26
26
+
gobject-introspection
27
27
+
];
28
28
+
29
29
+
buildInputs = [
30
30
+
gmime
31
31
+
libxml2
32
32
+
libsoup
33
33
+
];
34
34
+
35
35
+
meta = with lib; {
36
36
+
description = "Playlist parsing library for xplayer";
37
37
+
homepage = "https://github.com/linuxmint/xplayer-plparser";
38
38
+
maintainers = with maintainers; [ tu-maurice ];
39
39
+
license = licenses.lgpl2Plus;
40
40
+
platforms = platforms.linux;
41
41
+
};
42
42
+
}
+7
pkgs/top-level/all-packages.nix
···
26030
26030
xpra = callPackage ../tools/X11/xpra { };
26031
26031
libfakeXinerama = callPackage ../tools/X11/xpra/libfakeXinerama.nix { };
26032
26032
26033
26033
+
26034
26034
+
xplayer = callPackage ../applications/video/xplayer {
26035
26035
+
inherit (gst_all_1) gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad;
26036
26036
+
inherit (cinnamon) xapps;
26037
26037
+
};
26038
26038
+
libxplayer-plparser = callPackage ../applications/video/xplayer/plparser.nix { };
26039
26039
+
26033
26040
xrectsel = callPackage ../tools/X11/xrectsel { };
26034
26041
26035
26042
xrestop = callPackage ../tools/X11/xrestop { };