2020-05-30 17:26:50 +01:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, gtest, libdrm, libpciaccess, libva, libX11
|
|
|
|
, libXau, libXdmcp, libpthreadstubs }:
|
2019-03-10 19:40:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "intel-media-sdk";
|
2020-07-13 10:53:46 +01:00
|
|
|
version = "20.2.0";
|
2019-03-10 19:40:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-${version}.tar.gz";
|
2020-07-13 10:53:46 +01:00
|
|
|
sha256 = "1b138xpa73y78gxwappxkm58c9j2vqq8zy173z7n4pdwiwsx1kxc";
|
2019-03-10 19:40:54 +00:00
|
|
|
};
|
|
|
|
|
2020-05-30 16:33:18 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2019-03-10 19:40:54 +00:00
|
|
|
buildInputs = [
|
|
|
|
libdrm libva libpciaccess libX11 libXau libXdmcp libpthreadstubs
|
|
|
|
];
|
2020-05-30 17:26:50 +01:00
|
|
|
checkInputs = [ gtest ];
|
2019-03-10 19:40:54 +00:00
|
|
|
|
2020-05-30 16:33:18 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SAMPLES=OFF"
|
2020-05-30 17:26:50 +01:00
|
|
|
"-DBUILD_TESTS=${if doCheck then "ON" else "OFF"}"
|
|
|
|
"-DUSE_SYSTEM_GTEST=ON"
|
2020-05-30 16:33:18 +01:00
|
|
|
];
|
|
|
|
|
2020-05-30 17:26:50 +01:00
|
|
|
doCheck = true;
|
2019-03-10 19:40:54 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Intel Media SDK.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ midchildan ];
|
2019-12-07 11:39:51 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2019-03-10 19:40:54 +00:00
|
|
|
};
|
|
|
|
}
|