Merge pull request #89223 from midchildan/cleanup/intel-media-sdk

intel-media-sdk: remove samples
This commit is contained in:
Florian Klink 2020-05-31 22:20:36 +02:00 committed by GitHub
commit 5cad739409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,5 @@
{ stdenv, fetchurl, autoPatchelfHook, cmake, pkgconfig, libdrm, libpciaccess
, libva , libX11, libXau, libXdmcp, libpthreadstubs
}:
{ stdenv, fetchurl, cmake, pkgconfig, gtest, libdrm, libpciaccess, libva, libX11
, libXau, libXdmcp, libpthreadstubs }:
stdenv.mkDerivation rec {
pname = "intel-media-sdk";
@ -11,12 +10,19 @@ stdenv.mkDerivation rec {
sha256 = "1p13b4abslq31pbgqf0bzs2ixns85yfdsm94326h2vcg0q7hqc24";
};
# patchelf is needed for binaries in $out/share/samples
nativeBuildInputs = [ autoPatchelfHook cmake pkgconfig ];
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [
libdrm libva libpciaccess libX11 libXau libXdmcp libpthreadstubs
];
checkInputs = [ gtest ];
cmakeFlags = [
"-DBUILD_SAMPLES=OFF"
"-DBUILD_TESTS=${if doCheck then "ON" else "OFF"}"
"-DUSE_SYSTEM_GTEST=ON"
];
doCheck = true;
enableParallelBuild = true;
meta = with stdenv.lib; {