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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
901 B
Nix
Raw Normal View History

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