diff options
author | midchildan <git@midchildan.org> | 2020-05-31 01:26:50 +0900 |
---|---|---|
committer | midchildan <git@midchildan.org> | 2020-06-01 02:12:34 +0900 |
commit | 4983263166a933eed9c5c818794608a77eea6403 (patch) | |
tree | 46a8dd8423a2af3a707819c3f98c2698a0fd813b /pkgs/development/libraries/intel-media-sdk | |
parent | 22ff7852057f2a4961a408dd88d982a5ce1ea811 (diff) |
intel-media-sdk: enable unit tests
Diffstat (limited to 'pkgs/development/libraries/intel-media-sdk')
-rw-r--r-- | pkgs/development/libraries/intel-media-sdk/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/libraries/intel-media-sdk/default.nix b/pkgs/development/libraries/intel-media-sdk/default.nix index a43c93ca7fc03..03b3b936f2611 100644 --- a/pkgs/development/libraries/intel-media-sdk/default.nix +++ b/pkgs/development/libraries/intel-media-sdk/default.nix @@ -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"; @@ -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; { |