nixpkgs/pkgs/development/libraries/intel-media-sdk/default.nix

36 lines
902 B
Nix
Raw Normal View History

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