nixpkgs/pkgs/development/libraries/intel-media-sdk/default.nix
2019-03-17 16:18:37 +09:00

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;
};
}