mdk-sdk: 0.30.0 -> 0.30.1

This commit is contained in:
aucub 2024-12-09 05:05:01 +08:00
parent f968abfcfa
commit 0afd5fbf40

View File

@ -18,14 +18,26 @@
libva,
libvdpau,
addDriverRunpath,
freetype,
harfbuzz,
fontconfig,
fribidi,
}:
let
arch =
{
aarch64-linux = "arm64";
x86_64-linux = "amd64";
}
.${stdenv.hostPlatform.system};
in
stdenv.mkDerivation rec {
pname = "mdk-sdk";
version = "0.30.0";
version = "0.30.1";
src = fetchurl {
url = "https://github.com/wang-bin/mdk-sdk/releases/download/v${version}/mdk-sdk-linux-x64.tar.xz";
hash = "sha256-dZ6KS3BlJAEOifGgXKBn1jgWTp3x82xJxk8qdXyJTeg=";
url = "https://github.com/wang-bin/mdk-sdk/releases/download/v${version}/mdk-sdk-linux.tar.xz";
hash = "sha256-e0NxM+H0RWokJyAqw1SMGykrGgqOTsyqyWQKcTFVXGY=";
};
nativeBuildInputs = [ autoPatchelfHook ];
@ -43,6 +55,10 @@ stdenv.mkDerivation rec {
wayland
xz
zlib
freetype
harfbuzz
fontconfig
fribidi
];
appendRunpaths = lib.makeLibraryPath [
@ -54,11 +70,11 @@ stdenv.mkDerivation rec {
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
mkdir $out
cp -r include $out/include
cp -r lib/${arch} $out/lib
cp -r lib/cmake $out/lib/cmake
ln -s . $out/lib/${arch}
runHook postInstall
'';
@ -68,6 +84,9 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/wang-bin/mdk-sdk";
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ orivej ];
platforms = [ "x86_64-linux" ];
platforms = [
"x86_64-linux"
"aarch64-linux"
];
};
}