ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
45 lines
1.3 KiB
Nix
45 lines
1.3 KiB
Nix
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, gtest, libdrm, libpciaccess, libva, libX11
|
|
, libXau, libXdmcp, libpthreadstubs, fetchpatch }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "intel-media-sdk";
|
|
version = "23.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Intel-Media-SDK";
|
|
repo = "MediaSDK";
|
|
rev = "intel-mediasdk-${version}";
|
|
hash = "sha256-wno3a/ZSKvgHvZiiJ0Gq9GlrEbfHCizkrSiHD6k/Loo=";
|
|
};
|
|
|
|
patches = [
|
|
# https://github.com/Intel-Media-SDK/MediaSDK/pull/3005
|
|
(fetchpatch {
|
|
name = "include-cstdint-explicitly.patch";
|
|
url = "https://github.com/Intel-Media-SDK/MediaSDK/commit/a4f37707c1bfdd5612d3de4623ffb2d21e8c1356.patch";
|
|
hash = "sha256-OPwGzcMTctJvHcKn5bHqV8Ivj4P7+E4K9WOKgECqf04=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [
|
|
libdrm libva libpciaccess libX11 libXau libXdmcp libpthreadstubs
|
|
];
|
|
nativeCheckInputs = [ gtest ];
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_SAMPLES=OFF"
|
|
"-DBUILD_TESTS=${if doCheck then "ON" else "OFF"}"
|
|
"-DUSE_SYSTEM_GTEST=ON"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Intel Media SDK";
|
|
mainProgram = "mfx-tracer-config";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ midchildan ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
}
|