tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
xine-lib: ffmpeg_3 -> ffmpeg
And refactor.
AndersonTorres
4 years ago
f223a67c
8518bfea
+65
-14
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
xine-lib
default.nix
+65
-14
pkgs/development/libraries/xine-lib/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, pkg-config, xorg, alsaLib, libGLU, libGL, aalib
2
2
-
, libvorbis, libtheora, speex, zlib, perl, ffmpeg_3
3
3
-
, flac, libcaca, libpulseaudio, libmng, libcdio, libv4l, vcdimager
4
4
-
, libmpcdec, ncurses
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchurl
4
4
+
, fetchpatch
5
5
+
, aalib
6
6
+
, alsaLib
7
7
+
, ffmpeg
8
8
+
, flac
9
9
+
, libGL
10
10
+
, libGLU
11
11
+
, libcaca
12
12
+
, libcdio
13
13
+
, libmng
14
14
+
, libmpcdec
15
15
+
, libpulseaudio
16
16
+
, libtheora
17
17
+
, libv4l
18
18
+
, libvorbis
19
19
+
, perl
20
20
+
, pkg-config
21
21
+
, speex
22
22
+
, vcdimager
23
23
+
, xorg
24
24
+
, zlib
5
25
}:
6
26
7
27
stdenv.mkDerivation rec {
···
10
30
11
31
src = fetchurl {
12
32
url = "mirror://sourceforge/xine/xine-lib-${version}.tar.xz";
13
13
-
sha256 = "01bhq27g5zbgy6y36hl7lajz1nngf68vs4fplxgh98fx20fv4lgg";
33
33
+
sha256 = "sha256-71GyHRDdoQRfp9cRvZFxz9rwpaKHQjO88W/98o7AcAU=";
14
34
};
15
35
16
16
-
nativeBuildInputs = [ pkg-config perl ];
36
36
+
nativeBuildInputs = [
37
37
+
pkg-config
38
38
+
perl
39
39
+
];
40
40
+
buildInputs = [
41
41
+
aalib
42
42
+
alsaLib
43
43
+
ffmpeg
44
44
+
flac
45
45
+
libGL
46
46
+
libGLU
47
47
+
libcaca
48
48
+
libcdio
49
49
+
libmng
50
50
+
libmpcdec
51
51
+
libpulseaudio
52
52
+
libtheora
53
53
+
libv4l
54
54
+
libvorbis
55
55
+
perl
56
56
+
speex
57
57
+
vcdimager
58
58
+
zlib
59
59
+
] ++ (with xorg; [
60
60
+
libX11
61
61
+
libXext
62
62
+
libXinerama
63
63
+
libXv
64
64
+
libxcb
65
65
+
]);
17
66
18
18
-
buildInputs = [
19
19
-
xorg.libX11 xorg.libXv xorg.libXinerama xorg.libxcb xorg.libXext
20
20
-
alsaLib libGLU libGL aalib libvorbis libtheora speex perl ffmpeg_3 flac
21
21
-
libcaca libpulseaudio libmng libcdio libv4l vcdimager libmpcdec ncurses
67
67
+
patches = [
68
68
+
# splitting path plugin
69
69
+
(fetchpatch {
70
70
+
name = "0001-fix-XINE_PLUGIN_PATH-splitting.patch";
71
71
+
url = "https://sourceforge.net/p/xine/mailman/attachment/32394053-5e27-6558-f0c9-49e0da0bc3cc%40gmx.de/1/";
72
72
+
sha256 = "sha256-LJedxrD8JWITDo9pnS9BCmy7wiPTyJyoQ1puX49tOls=";
73
73
+
})
22
74
];
23
75
24
76
NIX_LDFLAGS = "-lxcb-shm";
25
77
26
26
-
propagatedBuildInputs = [zlib];
27
27
-
28
78
enableParallelBuilding = true;
29
79
30
80
meta = with lib; {
31
31
-
homepage = "http://xine.sourceforge.net/home";
81
81
+
homepage = "http://www.xinehq.de/";
32
82
description = "A high-performance, portable and reusable multimedia playback engine";
33
33
-
platforms = platforms.linux;
34
83
license = with licenses; [ gpl2Plus lgpl2Plus ];
84
84
+
maintainers = with maintainers; [ AndersonTorres ];
85
85
+
platforms = platforms.linux;
35
86
};
36
87
}