Skip to content

Commit

Permalink
mpv-unwrapped: 0.34.1 -> 0.35.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Nov 15, 2022
1 parent 69ccacb commit b97cda7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions pkgs/applications/video/mpv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

, vulkanSupport ? stdenv.isLinux
, libplacebo
, shaderc
, shaderc # instead of spirv-cross
, vulkan-headers
, vulkan-loader

Expand All @@ -55,11 +55,13 @@
, cacaSupport ? true, libcaca
, cmsSupport ? true, lcms2
, dvdnavSupport ? stdenv.isLinux, libdvdnav
, dvbinSupport ? stdenv.isLinux
, jackaudioSupport ? false, libjack2
, javascriptSupport ? true, mujs
, libpngSupport ? true, libpng
, openalSupport ? true, openalSoft
, pulseSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio
, pipewireSupport ? stdenv.isLinux, pipewire
, rubberbandSupport ? true, rubberband
, screenSaverSupport ? true, libXScrnSaver
, sdl2Support ? true, SDL2
Expand All @@ -75,26 +77,24 @@
, zimgSupport ? true, zimg
}:

with lib;

let
luaEnv = lua.withPackages (ps: with ps; [ luasocket ]);

in stdenv.mkDerivation rec {
pname = "mpv";
version = "0.34.1";
version = "0.35.0";

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

src = fetchFromGitHub {
owner = "mpv-player";
repo = "mpv";
rev = "v${version}";
sha256 = "12qxwm1ww5vhjddl8yvj1xa0n1fi9z3lmzwhaiday2v59ca0qgsk";
sha256 = "sha256-U3NDSxlX4/WkoHFkOvpcwPMwfwTnSpCw0QI5yLMK08o=";
};

postPatch = ''
patchShebangs ./TOOLS/
patchShebangs version.* ./TOOLS/
'';

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

nativeBuildInputs = [
addOpenGLRunpath
docutils
docutils # for rst2man
perl
pkg-config
python3
Expand Down Expand Up @@ -154,6 +154,7 @@ in stdenv.mkDerivation rec {
++ lib.optionals javascriptSupport [ mujs ]
++ lib.optionals libpngSupport [ libpng ]
++ lib.optionals openalSupport [ openalSoft ]
++ lib.optionals pipewireSupport [ pipewire ]
++ lib.optionals pulseSupport [ libpulseaudio ]
++ lib.optionals rubberbandSupport [ rubberband ]
++ lib.optionals screenSaverSupport [ libXScrnSaver ]
Expand Down

0 comments on commit b97cda7

Please sign in to comment.