mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-29 00:27:49 +03:00
mpv: move defaults to package file
This commit is contained in:
parent
0f4eb7f977
commit
763dff1e20
@ -1,9 +1,9 @@
|
|||||||
{ stdenv, fetchurl, fetchFromGitHub, makeWrapper
|
{ config, stdenv, fetchurl, fetchFromGitHub, makeWrapper
|
||||||
, docutils, perl, pkgconfig, python3, which, ffmpeg_4
|
, docutils, perl, pkgconfig, python3, which, ffmpeg_4
|
||||||
, freefont_ttf, freetype, libass, libpthreadstubs, mujs
|
, freefont_ttf, freetype, libass, libpthreadstubs, mujs
|
||||||
, lua, libuchardet, libiconv ? null, darwin
|
, lua, libuchardet, libiconv ? null, darwin
|
||||||
|
|
||||||
, waylandSupport ? false
|
, waylandSupport ? stdenv.isLinux
|
||||||
, wayland ? null
|
, wayland ? null
|
||||||
, wayland-protocols ? null
|
, wayland-protocols ? null
|
||||||
, libxkbcommon ? null
|
, libxkbcommon ? null
|
||||||
@ -24,30 +24,30 @@
|
|||||||
, vulkan-headers ? null
|
, vulkan-headers ? null
|
||||||
, vulkan-loader ? null
|
, vulkan-loader ? null
|
||||||
|
|
||||||
, alsaSupport ? true, alsaLib ? null
|
, alsaSupport ? stdenv.isLinux, alsaLib ? null
|
||||||
, bluraySupport ? true, libbluray ? null
|
, bluraySupport ? true, libbluray ? null
|
||||||
, bs2bSupport ? true, libbs2b ? null
|
, bs2bSupport ? true, libbs2b ? null
|
||||||
, cacaSupport ? true, libcaca ? null
|
, cacaSupport ? true, libcaca ? null
|
||||||
, cmsSupport ? true, lcms2 ? null
|
, cmsSupport ? true, lcms2 ? null
|
||||||
, drmSupport ? true, libdrm ? null
|
, drmSupport ? stdenv.isLinux, libdrm ? null
|
||||||
, dvdnavSupport ? true, libdvdnav ? null
|
, dvdnavSupport ? stdenv.isLinux, libdvdnav ? null
|
||||||
, dvdreadSupport ? true, libdvdread ? null
|
, dvdreadSupport ? stdenv.isLinux, libdvdread ? null
|
||||||
, libpngSupport ? true, libpng ? null
|
, libpngSupport ? true, libpng ? null
|
||||||
, pulseSupport ? true, libpulseaudio ? null
|
, pulseSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null
|
||||||
, rubberbandSupport ? true, rubberband ? null
|
, rubberbandSupport ? stdenv.isLinux, rubberband ? null
|
||||||
, screenSaverSupport ? true, libXScrnSaver ? null
|
, screenSaverSupport ? true, libXScrnSaver ? null
|
||||||
, sdl2Support ? true, SDL2 ? null
|
, sdl2Support ? true, SDL2 ? null
|
||||||
, speexSupport ? true, speex ? null
|
, speexSupport ? true, speex ? null
|
||||||
, theoraSupport ? true, libtheora ? null
|
, theoraSupport ? true, libtheora ? null
|
||||||
, vaapiSupport ? true, libva ? null
|
, vaapiSupport ? stdenv.isLinux, libva ? null
|
||||||
, vdpauSupport ? true, libvdpau ? null
|
, vdpauSupport ? true, libvdpau ? null
|
||||||
, xineramaSupport ? true, libXinerama ? null
|
, xineramaSupport ? stdenv.isLinux, libXinerama ? null
|
||||||
, xvSupport ? true, libXv ? null
|
, xvSupport ? stdenv.isLinux, libXv ? null
|
||||||
, youtubeSupport ? true, youtube-dl ? null
|
, youtubeSupport ? true, youtube-dl ? null
|
||||||
, archiveSupport ? false, libarchive ? null
|
, archiveSupport ? false, libarchive ? null
|
||||||
, jackaudioSupport ? false, libjack2 ? null
|
, jackaudioSupport ? false, libjack2 ? null
|
||||||
, openalSupport ? false, openalSoft ? null
|
, openalSupport ? false, openalSoft ? null
|
||||||
, vapoursynthSupport ? false, vapoursynth ? null
|
, vapoursynthSupport ? false, vapoursynth ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -92,7 +92,7 @@ let
|
|||||||
"http://www.freehackers.org/~tnagy/release/waf-${wafVersion}" ];
|
"http://www.freehackers.org/~tnagy/release/waf-${wafVersion}" ];
|
||||||
sha256 = "0j7sbn3w6bgslvwwh5v9527w3gi2sd08kskrgxamx693y0b0i3ia";
|
sha256 = "0j7sbn3w6bgslvwwh5v9527w3gi2sd08kskrgxamx693y0b0i3ia";
|
||||||
};
|
};
|
||||||
luaEnv = lua.withPackages(ps: with ps; [ luasocket]);
|
luaEnv = lua.withPackages(ps: with ps; [ luasocket ]);
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "mpv-${version}";
|
name = "mpv-${version}";
|
||||||
|
@ -18382,19 +18382,8 @@ in
|
|||||||
# !!! should depend on MPlayer
|
# !!! should depend on MPlayer
|
||||||
};
|
};
|
||||||
|
|
||||||
mpv = callPackage ../applications/video/mpv rec {
|
mpv = callPackage ../applications/video/mpv {
|
||||||
inherit lua;
|
inherit lua;
|
||||||
waylandSupport = stdenv.isLinux;
|
|
||||||
alsaSupport = !stdenv.isDarwin;
|
|
||||||
pulseSupport = !stdenv.isDarwin;
|
|
||||||
rubberbandSupport = !stdenv.isDarwin;
|
|
||||||
dvdreadSupport = !stdenv.isDarwin;
|
|
||||||
dvdnavSupport = !stdenv.isDarwin;
|
|
||||||
drmSupport = !stdenv.isDarwin;
|
|
||||||
vaapiSupport = !stdenv.isDarwin;
|
|
||||||
x11Support = !stdenv.isDarwin;
|
|
||||||
xineramaSupport = !stdenv.isDarwin;
|
|
||||||
xvSupport = !stdenv.isDarwin;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
mpv-with-scripts = callPackage ../applications/video/mpv/wrapper.nix { };
|
mpv-with-scripts = callPackage ../applications/video/mpv/wrapper.nix { };
|
||||||
|
Loading…
Reference in New Issue
Block a user