19 stdenv.mkDerivation rec {
20 pname = "libva" + lib.optionalString minimal "-minimal";
21 # nixpkgs-update: no auto update
24 src = fetchFromGitHub {
28 sha256 = "sha256-ur59cqdZqXIY2dDUSie9XsxyRomVBxIW2IVKAgWYC38=";
31 outputs = [ "dev" "out" ];
33 nativeBuildInputs = [ autoreconfHook pkg-config wayland-scanner ];
35 buildInputs = [ libdrm ]
36 ++ lib.optionals (!minimal) [ libva1-minimal libX11 libXext libXfixes wayland libffi libGL ];
37 # TODO: share libs between minimal and !minimal - perhaps just symlink them
39 # Add FHS paths for non-NixOS applications.
40 configureFlags = [ "--with-drivers-path=${mesa.drivers.driverLink}/lib/dri:/usr/lib/dri:/usr/lib32/dri" ]
41 ++ lib.optionals (!minimal) [ "--enable-glx" ];
43 installFlags = [ "dummy_drv_video_ladir=$(out)/lib/dri" ];
46 homepage = "https://www.freedesktop.org/wiki/Software/vaapi/";
47 license = licenses.mit;
48 description = "VAAPI library: Video Acceleration API";
49 platforms = platforms.unix;
50 maintainers = with maintainers; [ SuperSandro2000 ];