mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 18:42:15 +00:00
29 lines
847 B
Nix
29 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 = "18.4.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/Intel-Media-SDK/MediaSDK/archive/intel-mediasdk-${version}.tar.gz";
|
|
sha256 = "0yqqw6hyjn28zk4f4wznqpyiz9vinnjj8067dim64bz1f4pjhyra";
|
|
};
|
|
|
|
# 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;
|
|
};
|
|
}
|