Skip to content

Commit

Permalink
intel-media-sdk: enable unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
midchildan committed May 31, 2020
1 parent 22ff785 commit 4983263
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/development/libraries/intel-media-sdk/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, 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";
Expand All @@ -14,11 +14,15 @@ stdenv.mkDerivation rec {
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; {
Expand Down

0 comments on commit 4983263

Please sign in to comment.