2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, gtest, libdrm, libpciaccess, libva, libX11
|
2020-05-30 18:26:50 +02:00
|
|
|
, libXau, libXdmcp, libpthreadstubs }:
|
2019-03-10 20:40:54 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "intel-media-sdk";
|
2020-11-13 20:03:00 +01:00
|
|
|
version = "20.4.1";
|
2019-03-10 20:40:54 +01:00
|
|
|
|
2020-11-02 14:22:01 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Intel-Media-SDK";
|
|
|
|
repo = "MediaSDK";
|
|
|
|
rev = "intel-mediasdk-${version}";
|
2020-11-13 20:03:00 +01:00
|
|
|
sha256 = "0qnq43qjcmzkn6v2aymzi3kycndk9xw6m5f5g5sz5x53nz556bp0";
|
2019-03-10 20:40:54 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2019-03-10 20:40:54 +01:00
|
|
|
buildInputs = [
|
|
|
|
libdrm libva libpciaccess libX11 libXau libXdmcp libpthreadstubs
|
|
|
|
];
|
2020-05-30 18:26:50 +02:00
|
|
|
checkInputs = [ gtest ];
|
2019-03-10 20:40:54 +01:00
|
|
|
|
2020-05-30 17:33:18 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SAMPLES=OFF"
|
2020-05-30 18:26:50 +02:00
|
|
|
"-DBUILD_TESTS=${if doCheck then "ON" else "OFF"}"
|
|
|
|
"-DUSE_SYSTEM_GTEST=ON"
|
2020-05-30 17:33:18 +02:00
|
|
|
];
|
|
|
|
|
2020-05-30 18:26:50 +02:00
|
|
|
doCheck = true;
|
2019-03-10 20:40:54 +01:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "Intel Media SDK";
|
2019-03-10 20:40:54 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ midchildan ];
|
2019-12-07 12:39:51 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2019-03-10 20:40:54 +01:00
|
|
|
};
|
|
|
|
}
|