28 lines
847 B
Nix
28 lines
847 B
Nix
{ stdenv, fetchurl, autoPatchelfHook, cmake, pkgconfig, libdrm, libpciaccess
|
|
, libva , libX11, libXau, libXdmcp, libpthreadstubs
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "intel-media-sdk-${version}";
|
|
version = "19.1.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-${version}.tar.gz";
|
|
sha256 = "1gligrg6khzmwcy6miikljj75hhxqy0a95qzc8m61ipx5c8igdpv";
|
|
};
|
|
|
|
# patchelf is needed for binaries in $out/share/samples
|
|
nativeBuildInputs = [ autoPatchelfHook cmake pkgconfig ];
|
|
buildInputs = [
|
|
libdrm libva libpciaccess libX11 libXau libXdmcp libpthreadstubs
|
|
];
|
|
|
|
enableParallelBuild = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Intel Media SDK.";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ midchildan ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|