blob: be0751901c63f6a56b9bef754d7047cf824d145c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
{ inputs }:
# let
# pkgsmaster = import inputs.nixpkgsmaster {};
# in
self: super: {
mpv_my =
with super;
(mpv-unwrapped.override {
archiveSupport = true;
bluraySupport = true;
bs2bSupport = true;
cmsSupport = true;
cacaSupport = false;
drmSupport = true;
vulkanSupport = true;
waylandSupport = true;
x11Support = true;
cddaSupport = true;
pulseSupport = false;
openalSupport = false;
sdl2Support = false;
vaapiSupport = true;
vapoursynthSupport = false;
vdpauSupport = false;
# xineramaSupport = true;
# xvSupport = true;
# screenSaverSupport = true;
pipewireSupport = true;
ffmpeg = self.ffmpeg_my;
libva = self.libva_my;
shaderc = self.shaderc_my;
libass = libass.overrideAttrs (old: rec {
src = fetchGit {
url = "https://github.com/libass/libass";
ref = "master";
};
nativeBuildInputs = old.nativeBuildInputs ++ [ autoreconfHook ];
});
libplacebo = self.libplacebo_my;
}).overrideAttrs
(oldAttrs: rec {
version = "git";
src = fetchGit {
url = "https://github.com/mpv-player/mpv";
ref = "master";
# rev = "c50f536bd1ac1f8154d2b1dcaccd25ab150b414a";
};
buildInputs = oldAttrs.buildInputs ++ [
xorg.libXpresent
zlib
lcms2
libuchardet
libarchive
xorg.libX11
xorg.libXext
libGLU
libGL
xorg.libXxf86vm
xorg.libXrandr
xorg.libXScrnSaver
xorg.libXinerama
pipewire
];
postPatch = lib.concatStringsSep "\n" [
''
pushd TOOLS
mv mpv_identify.sh mpv_identify
patchShebangs *.py *.sh
mv mpv_identify mpv_identify.sh
popd
''
];
patches = [ ];
mesonFlags = oldAttrs.mesonFlags ++ [
(lib.mesonOption "cuda-hwaccel" "disabled")
(lib.mesonOption "cuda-interop" "disabled")
];
outputs = [
"out"
"man"
];
});
}
|