7079e744d4
Resolved the following conflicts (by carefully applying patches from the both branches since the fork point): pkgs/development/libraries/epoxy/default.nix pkgs/development/libraries/gtk+/3.x.nix pkgs/development/python-modules/asgiref/default.nix pkgs/development/python-modules/daphne/default.nix pkgs/os-specific/linux/systemd/default.nix
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkgconfig
|
|
, libXext, libdrm, libXfixes, wayland, libffi, libX11
|
|
, libGL
|
|
, minimal ? true, libva
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libva-${lib.optionalString (!minimal) "full-"}${version}";
|
|
version = "2.1.0";
|
|
|
|
# update libva-utils and vaapiIntel as well
|
|
src = fetchFromGitHub {
|
|
owner = "01org";
|
|
repo = "libva";
|
|
rev = version;
|
|
sha256 = "1a60lrgr65hx9b2qp0gjky1298c4d4zp3ap6vnmmz850sxx5rm8w";
|
|
};
|
|
|
|
outputs = [ "dev" "out" ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ libdrm ]
|
|
++ lib.optionals (!minimal) [ libva libX11 libXext libXfixes wayland libffi libGL ];
|
|
# TODO: share libs between minimal and !minimal - perhaps just symlink them
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
configureFlags = [
|
|
"--with-drivers-path=${libGL.driverLink}/lib/dri"
|
|
] ++ lib.optionals (!minimal) [ "--enable-glx" ];
|
|
|
|
installFlags = [
|
|
"dummy_drv_video_ladir=$(out)/lib/dri"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "VAAPI library: Video Acceleration API";
|
|
homepage = http://www.freedesktop.org/wiki/Software/vaapi;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ garbas ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|