libva: make libva-full
the default
It seems that all uses of `libva` it in nixpkgs except `mesa` and itself actually either will gain from using `libva-full` instead of `libva-minimal` by default or simply won't care.
This commit is contained in:
parent
8f6f69cb0f
commit
c7cf808ff8
@ -1,4 +1,4 @@
|
|||||||
{ callPackage, libva-full }:
|
{ callPackage }:
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
gstreamer = callPackage ./core { };
|
gstreamer = callPackage ./core { };
|
||||||
@ -23,7 +23,6 @@ rec {
|
|||||||
|
|
||||||
gst-vaapi = callPackage ./vaapi {
|
gst-vaapi = callPackage ./vaapi {
|
||||||
inherit gst-plugins-base gstreamer gst-plugins-bad;
|
inherit gst-plugins-base gstreamer gst-plugins-bad;
|
||||||
libva = libva-full; # looks also for libva-{x11,wayland}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gst-validate = callPackage ./validate { inherit gst-plugins-base; };
|
gst-validate = callPackage ./validate { inherit gst-plugins-base; };
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkgconfig
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkgconfig
|
||||||
, libXext, libdrm, libXfixes, wayland, libffi, libX11
|
, libXext, libdrm, libXfixes, wayland, libffi, libX11
|
||||||
, libGL, libGL_driver
|
, libGL, libGL_driver
|
||||||
, minimal ? true, libva
|
, minimal ? false, libva-minimal
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libva-${lib.optionalString (!minimal) "full-"}${version}";
|
name = "libva-${lib.optionalString minimal "minimal-"}${version}";
|
||||||
version = "2.1.0";
|
version = "2.1.0";
|
||||||
|
|
||||||
# update libva-utils and vaapiIntel as well
|
# update libva-utils and vaapiIntel as well
|
||||||
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ libdrm ]
|
buildInputs = [ libdrm ]
|
||||||
++ lib.optionals (!minimal) [ libva libX11 libXext libXfixes wayland libffi libGL ];
|
++ lib.optionals (!minimal) [ libva-minimal libX11 libXext libXfixes wayland libffi libGL ];
|
||||||
# TODO: share libs between minimal and !minimal - perhaps just symlink them
|
# TODO: share libs between minimal and !minimal - perhaps just symlink them
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, lib
|
{ stdenv, fetchurl, fetchpatch, lib
|
||||||
, pkgconfig, intltool, autoreconfHook, substituteAll
|
, pkgconfig, intltool, autoreconfHook, substituteAll
|
||||||
, file, expat, libdrm, xorg, wayland, wayland-protocols, openssl
|
, file, expat, libdrm, xorg, wayland, wayland-protocols, openssl
|
||||||
, llvmPackages, libffi, libomxil-bellagio, libva
|
, llvmPackages, libffi, libomxil-bellagio, libva-minimal
|
||||||
, libelf, libvdpau, valgrind-light, python2
|
, libelf, libvdpau, valgrind-light, python2
|
||||||
, libglvnd
|
, libglvnd
|
||||||
, grsecEnabled ? false
|
, grsecEnabled ? false
|
||||||
@ -151,7 +151,7 @@ let self = stdenv.mkDerivation {
|
|||||||
glproto dri2proto dri3proto presentproto
|
glproto dri2proto dri3proto presentproto
|
||||||
libX11 libXext libxcb libXt libXfixes libxshmfence
|
libX11 libXext libxcb libXt libXfixes libxshmfence
|
||||||
libffi wayland wayland-protocols libvdpau libelf libXvMC
|
libffi wayland wayland-protocols libvdpau libelf libXvMC
|
||||||
libomxil-bellagio libva libpthreadstubs openssl/*or another sha1 provider*/
|
libomxil-bellagio libva-minimal libpthreadstubs openssl/*or another sha1 provider*/
|
||||||
valgrind-light python2
|
valgrind-light python2
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ stdenv.mkDerivation ((lib.optionalAttrs (! isNull buildScript) {
|
|||||||
++ lib.optional odbcSupport pkgs.unixODBC
|
++ lib.optional odbcSupport pkgs.unixODBC
|
||||||
++ lib.optional netapiSupport pkgs.samba4
|
++ lib.optional netapiSupport pkgs.samba4
|
||||||
++ lib.optional cursesSupport pkgs.ncurses
|
++ lib.optional cursesSupport pkgs.ncurses
|
||||||
++ lib.optional vaSupport pkgs.libva-full
|
++ lib.optional vaSupport pkgs.libva
|
||||||
++ lib.optional pcapSupport pkgs.libpcap
|
++ lib.optional pcapSupport pkgs.libpcap
|
||||||
++ lib.optional v4lSupport pkgs.libv4l
|
++ lib.optional v4lSupport pkgs.libv4l
|
||||||
++ lib.optional saneSupport pkgs.sane-backends
|
++ lib.optional saneSupport pkgs.sane-backends
|
||||||
|
@ -10328,7 +10328,8 @@ with pkgs;
|
|||||||
});
|
});
|
||||||
|
|
||||||
libva = callPackage ../development/libraries/libva { };
|
libva = callPackage ../development/libraries/libva { };
|
||||||
libva-full = libva.override { minimal = false; };
|
libva-minimal = libva.override { minimal = true; };
|
||||||
|
libva-full = libva;
|
||||||
libva-utils = callPackage ../development/libraries/libva-utils { };
|
libva-utils = callPackage ../development/libraries/libva-utils { };
|
||||||
|
|
||||||
libva1 = callPackage ../development/libraries/libva/1.0.0.nix { };
|
libva1 = callPackage ../development/libraries/libva/1.0.0.nix { };
|
||||||
@ -10336,9 +10337,7 @@ with pkgs;
|
|||||||
|
|
||||||
libvdpau = callPackage ../development/libraries/libvdpau { };
|
libvdpau = callPackage ../development/libraries/libvdpau { };
|
||||||
|
|
||||||
libvdpau-va-gl = callPackage ../development/libraries/libvdpau-va-gl {
|
libvdpau-va-gl = callPackage ../development/libraries/libvdpau-va-gl { };
|
||||||
libva = libva-full; # also wants libva-{x11}
|
|
||||||
};
|
|
||||||
|
|
||||||
libvirt = callPackage ../development/libraries/libvirt { };
|
libvirt = callPackage ../development/libraries/libvirt { };
|
||||||
|
|
||||||
@ -11109,9 +11108,7 @@ with pkgs;
|
|||||||
|
|
||||||
libopenshot-audio = callPackage ../applications/video/openshot-qt/libopenshot-audio.nix { };
|
libopenshot-audio = callPackage ../applications/video/openshot-qt/libopenshot-audio.nix { };
|
||||||
|
|
||||||
libqtav = callPackage ../development/libraries/libqtav {
|
libqtav = callPackage ../development/libraries/libqtav { };
|
||||||
libva = libva-full; # also wants libva-x11
|
|
||||||
};
|
|
||||||
|
|
||||||
kpmcore = callPackage ../development/libraries/kpmcore { };
|
kpmcore = callPackage ../development/libraries/kpmcore { };
|
||||||
|
|
||||||
@ -11644,13 +11641,9 @@ with pkgs;
|
|||||||
|
|
||||||
v8_static = lowPrio (self.v8.override { static = true; });
|
v8_static = lowPrio (self.v8.override { static = true; });
|
||||||
|
|
||||||
vaapiIntel = callPackage ../development/libraries/vaapi-intel {
|
vaapiIntel = callPackage ../development/libraries/vaapi-intel { };
|
||||||
libva = libva-full; # also wants libva-{x11,drm,wayland}
|
|
||||||
};
|
|
||||||
|
|
||||||
vaapiVdpau = callPackage ../development/libraries/vaapi-vdpau {
|
vaapiVdpau = callPackage ../development/libraries/vaapi-vdpau { };
|
||||||
libva = libva-full; # needs libva-{x11,glx}
|
|
||||||
};
|
|
||||||
|
|
||||||
vale = callPackage ../tools/text/vale { };
|
vale = callPackage ../tools/text/vale { };
|
||||||
|
|
||||||
@ -14706,9 +14699,7 @@ with pkgs;
|
|||||||
|
|
||||||
autopanosiftc = callPackage ../applications/graphics/autopanosiftc { };
|
autopanosiftc = callPackage ../applications/graphics/autopanosiftc { };
|
||||||
|
|
||||||
avidemux = libsForQt5.callPackage ../applications/video/avidemux {
|
avidemux = libsForQt5.callPackage ../applications/video/avidemux { };
|
||||||
libva = libva-full;
|
|
||||||
};
|
|
||||||
|
|
||||||
avogadro = callPackage ../applications/science/chemistry/avogadro {
|
avogadro = callPackage ../applications/science/chemistry/avogadro {
|
||||||
eigen = eigen2;
|
eigen = eigen2;
|
||||||
@ -16732,7 +16723,6 @@ with pkgs;
|
|||||||
mpv = callPackage ../applications/video/mpv rec {
|
mpv = callPackage ../applications/video/mpv rec {
|
||||||
inherit (luaPackages) luasocket;
|
inherit (luaPackages) luasocket;
|
||||||
youtube-dl = pythonPackages.youtube-dl;
|
youtube-dl = pythonPackages.youtube-dl;
|
||||||
libva = libva-full;
|
|
||||||
waylandSupport = stdenv.isLinux;
|
waylandSupport = stdenv.isLinux;
|
||||||
alsaSupport = !stdenv.isDarwin;
|
alsaSupport = !stdenv.isDarwin;
|
||||||
pulseSupport = !stdenv.isDarwin;
|
pulseSupport = !stdenv.isDarwin;
|
||||||
@ -18142,7 +18132,6 @@ with pkgs;
|
|||||||
|
|
||||||
vlc = callPackage ../applications/video/vlc {
|
vlc = callPackage ../applications/video/vlc {
|
||||||
ffmpeg = ffmpeg_2;
|
ffmpeg = ffmpeg_2;
|
||||||
libva = libva-full; # also wants libva-x11
|
|
||||||
};
|
};
|
||||||
|
|
||||||
vlc_npapi = callPackage ../applications/video/vlc/plugin.nix {
|
vlc_npapi = callPackage ../applications/video/vlc/plugin.nix {
|
||||||
@ -18399,9 +18388,7 @@ with pkgs;
|
|||||||
gtk = gtk2;
|
gtk = gtk2;
|
||||||
};
|
};
|
||||||
|
|
||||||
kodiPlain = callPackage ../applications/video/kodi {
|
kodiPlain = callPackage ../applications/video/kodi { };
|
||||||
libva = libva-full;
|
|
||||||
};
|
|
||||||
xbmcPlain = kodiPlain;
|
xbmcPlain = kodiPlain;
|
||||||
|
|
||||||
kodiPlugins = recurseIntoAttrs (callPackage ../applications/video/kodi/plugins.nix {});
|
kodiPlugins = recurseIntoAttrs (callPackage ../applications/video/kodi/plugins.nix {});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user