Skip to content

Commit b97cda7

Browse files
mpv-unwrapped: 0.34.1 -> 0.35.0
1 parent 69ccacb commit b97cda7

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

pkgs/applications/video/mpv/default.nix

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
, vulkanSupport ? stdenv.isLinux
4242
, libplacebo
43-
, shaderc
43+
, shaderc # instead of spirv-cross
4444
, vulkan-headers
4545
, vulkan-loader
4646

@@ -55,11 +55,13 @@
5555
, cacaSupport ? true, libcaca
5656
, cmsSupport ? true, lcms2
5757
, dvdnavSupport ? stdenv.isLinux, libdvdnav
58+
, dvbinSupport ? stdenv.isLinux
5859
, jackaudioSupport ? false, libjack2
5960
, javascriptSupport ? true, mujs
6061
, libpngSupport ? true, libpng
6162
, openalSupport ? true, openalSoft
6263
, pulseSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio
64+
, pipewireSupport ? stdenv.isLinux, pipewire
6365
, rubberbandSupport ? true, rubberband
6466
, screenSaverSupport ? true, libXScrnSaver
6567
, sdl2Support ? true, SDL2
@@ -75,26 +77,24 @@
7577
, zimgSupport ? true, zimg
7678
}:
7779

78-
with lib;
79-
8080
let
8181
luaEnv = lua.withPackages (ps: with ps; [ luasocket ]);
8282

8383
in stdenv.mkDerivation rec {
8484
pname = "mpv";
85-
version = "0.34.1";
85+
version = "0.35.0";
8686

8787
outputs = [ "out" "dev" "man" ];
8888

8989
src = fetchFromGitHub {
9090
owner = "mpv-player";
9191
repo = "mpv";
9292
rev = "v${version}";
93-
sha256 = "12qxwm1ww5vhjddl8yvj1xa0n1fi9z3lmzwhaiday2v59ca0qgsk";
93+
sha256 = "sha256-U3NDSxlX4/WkoHFkOvpcwPMwfwTnSpCw0QI5yLMK08o=";
9494
};
9595

9696
postPatch = ''
97-
patchShebangs ./TOOLS/
97+
patchShebangs version.* ./TOOLS/
9898
'';
9999

100100
NIX_LDFLAGS = lib.optionalString x11Support "-lX11 -lXext "
@@ -119,13 +119,13 @@ in stdenv.mkDerivation rec {
119119
(lib.enableFeature sixelSupport "sixel")
120120
(lib.enableFeature vaapiSupport "vaapi")
121121
(lib.enableFeature waylandSupport "wayland")
122-
(lib.enableFeature stdenv.isLinux "dvbin")
122+
(lib.enableFeature dvbinSupport "dvbin")
123123
] # Disable whilst Swift isn't supported
124124
++ lib.optional (!swiftSupport) "--disable-macos-cocoa-cb";
125125

126126
nativeBuildInputs = [
127127
addOpenGLRunpath
128-
docutils
128+
docutils # for rst2man
129129
perl
130130
pkg-config
131131
python3
@@ -154,6 +154,7 @@ in stdenv.mkDerivation rec {
154154
++ lib.optionals javascriptSupport [ mujs ]
155155
++ lib.optionals libpngSupport [ libpng ]
156156
++ lib.optionals openalSupport [ openalSoft ]
157+
++ lib.optionals pipewireSupport [ pipewire ]
157158
++ lib.optionals pulseSupport [ libpulseaudio ]
158159
++ lib.optionals rubberbandSupport [ rubberband ]
159160
++ lib.optionals screenSaverSupport [ libXScrnSaver ]

0 commit comments

Comments
 (0)