2024-01-02 11:29:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoPatchelfHook
|
|
|
|
, alsa-lib, gcc-unwrapped, libX11, libcxx, libdrm, libglvnd, libpulseaudio, libxcb, mesa, wayland, xz, zlib
|
|
|
|
, libva, libvdpau, addOpenGLRunpath
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mdk-sdk";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.26.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/wang-bin/mdk-sdk/releases/download/v${version}/mdk-sdk-linux-x64.tar.xz";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-DZiipuGXhzrlm49doNeFExApHMDI7ILfOumgXA8useA=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsa-lib gcc-unwrapped libX11 libcxx libdrm libglvnd libpulseaudio libxcb mesa wayland xz zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
appendRunpaths = lib.makeLibraryPath [
|
|
|
|
libva libvdpau addOpenGLRunpath.driverLink
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/lib
|
|
|
|
cp -r include $out
|
|
|
|
cp -d lib/amd64/libmdk* $out/lib
|
|
|
|
ln -s . $out/lib/amd64
|
|
|
|
cp -r lib/cmake $out/lib
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "multimedia development kit";
|
|
|
|
homepage = "https://github.com/wang-bin/mdk-sdk";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|