1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config, gtest, libdrm, libpciaccess, libva, libX11
2 , libXau, libXdmcp, libpthreadstubs }:
4 stdenv.mkDerivation rec {
5 pname = "intel-media-sdk";
8 src = fetchFromGitHub {
9 owner = "Intel-Media-SDK";
11 rev = "intel-mediasdk-${version}";
12 sha256 = "sha256-f9b0+BWUlekMM0huPdJ5Ms4tYr/ipgfLiQ310FQKAXA=";
15 nativeBuildInputs = [ cmake pkg-config ];
17 libdrm libva libpciaccess libX11 libXau libXdmcp libpthreadstubs
19 checkInputs = [ gtest ];
23 "-DBUILD_TESTS=${if doCheck then "ON" else "OFF"}"
24 "-DUSE_SYSTEM_GTEST=ON"
30 description = "Intel Media SDK";
31 license = licenses.mit;
32 maintainers = with maintainers; [ midchildan ];
33 platforms = [ "x86_64-linux" ];