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

34 lines
894 B
Nix
Raw Normal View History

2020-05-30 18:26:50 +02:00
{ stdenv, fetchurl, cmake, pkgconfig, gtest, libdrm, libpciaccess, libva, libX11
, libXau, libXdmcp, libpthreadstubs }:
2019-03-10 20:40:54 +01:00
stdenv.mkDerivation rec {
pname = "intel-media-sdk";
2020-05-05 16:15:24 +02:00
version = "20.1.1";
2019-03-10 20:40:54 +01:00
src = fetchurl {
url = "https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-${version}.tar.gz";
2020-05-05 16:15:24 +02:00
sha256 = "1p13b4abslq31pbgqf0bzs2ixns85yfdsm94326h2vcg0q7hqc24";
2019-03-10 20:40:54 +01:00
};
nativeBuildInputs = [ cmake pkgconfig ];
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
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 18:26:50 +02:00
doCheck = true;
2019-03-10 20:40:54 +01:00
meta = with stdenv.lib; {
description = "Intel Media SDK.";
license = licenses.mit;
maintainers = with maintainers; [ midchildan ];
platforms = [ "x86_64-linux" ];
2019-03-10 20:40:54 +01:00
};
}