1 { stdenv, lib, fetchurl, libX11, pkg-config, libXext, libdrm, libXfixes, wayland, libffi
3 , minimal ? false, libva1-minimal
6 stdenv.mkDerivation rec {
11 url = "https://www.freedesktop.org/software/vaapi/releases/libva/${pname}-${version}.tar.bz2";
12 sha256 = "1ndrf136rlw03xag7j1xpmf9015d1h0dpnv6v587jnh6k2a17g12";
15 outputs = [ "bin" "dev" "out" ];
17 nativeBuildInputs = [ pkg-config ];
19 buildInputs = [ libdrm ]
20 ++ lib.optionals (!minimal) [ libva1-minimal libX11 libXext libXfixes wayland libffi libGL ];
21 # TODO: share libs between minimal and !minimal - perhaps just symlink them
24 # Add FHS paths for non-NixOS applications.
25 [ "--with-drivers-path=${mesa.drivers.driverLink}/lib/dri:/usr/lib/dri:/usr/lib32/dri" ] ++
26 lib.optionals (!minimal) [ "--enable-glx" ];
28 installFlags = [ "dummy_drv_video_ladir=$(out)/lib/dri" ];
31 homepage = "http://www.freedesktop.org/wiki/Software/vaapi";
32 license = licenses.mit;
33 description = "VAAPI library: Video Acceleration API";
34 platforms = platforms.unix;
35 maintainers = with maintainers; [ ];