2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, gtest, libdrm, libpciaccess, libva, libX11
|
2020-06-02 18:00:15 +00:00
|
|
|
, libXau, libXdmcp, libpthreadstubs }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "intel-media-sdk";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "23.2.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Intel-Media-SDK";
|
|
|
|
repo = "MediaSDK";
|
|
|
|
rev = "intel-mediasdk-${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-wno3a/ZSKvgHvZiiJ0Gq9GlrEbfHCizkrSiHD6k/Loo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
libdrm libva libpciaccess libX11 libXau libXdmcp libpthreadstubs
|
|
|
|
];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ gtest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-02 18:00:15 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SAMPLES=OFF"
|
|
|
|
"-DBUILD_TESTS=${if doCheck then "ON" else "OFF"}"
|
|
|
|
"-DUSE_SYSTEM_GTEST=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Intel Media SDK";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ midchildan ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|