nixpkgs/pkgs/development/libraries/vaapi-intel/default.nix

39 lines
1023 B
Nix
Raw Normal View History

2016-10-19 11:34:37 +03:00
{ stdenv, fetchurl, gnum4, pkgconfig, python2
2015-05-05 15:41:54 +03:00
, intel-gpu-tools, libdrm, libva, libX11, mesa_noglu, wayland
}:
stdenv.mkDerivation rec {
2016-10-13 04:12:49 +03:00
name = "libva-intel-driver-1.7.2";
2013-06-03 08:01:12 +04:00
src = fetchurl {
url = "http://www.freedesktop.org/software/vaapi/releases/libva-intel-driver/${name}.tar.bz2";
2016-10-13 04:12:49 +03:00
sha256 = "1g371q9p31i57fkidjp2akvrbaadpyx3bwmg5kn72sc2mbv7p7h9";
};
2015-05-05 15:41:54 +03:00
patchPhase = ''
patchShebangs ./src/shaders/gpp.py
2014-08-04 10:22:16 +04:00
'';
preConfigure = ''
sed -i -e "s,LIBVA_DRIVERS_PATH=.*,LIBVA_DRIVERS_PATH=$out/lib/dri," configure
'';
2015-05-05 15:41:54 +03:00
configureFlags = [
"--enable-drm"
"--enable-x11"
"--enable-wayland"
];
2016-10-19 11:34:37 +03:00
nativeBuildInputs = [ gnum4 pkgconfig python2 ];
2015-05-05 15:41:54 +03:00
buildInputs = [ intel-gpu-tools libdrm libva libX11 mesa_noglu wayland ];
2014-08-04 10:22:16 +04:00
meta = with stdenv.lib; {
homepage = http://cgit.freedesktop.org/vaapi/intel-driver/;
2014-08-04 10:22:16 +04:00
license = licenses.mit;
description = "Intel driver for the VAAPI library";
2014-08-04 10:22:16 +04:00
platforms = platforms.unix;
2016-05-25 03:39:57 +03:00
maintainers = with maintainers; [ garbas ];
};
}