From 0afd5fbf4018d0ed4ea85a44a1499cf8eb242c12 Mon Sep 17 00:00:00 2001 From: aucub <78630225+aucub@users.noreply.github.com> Date: Mon, 9 Dec 2024 05:05:01 +0800 Subject: [PATCH] mdk-sdk: 0.30.0 -> 0.30.1 --- pkgs/by-name/md/mdk-sdk/package.nix | 37 ++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/md/mdk-sdk/package.nix b/pkgs/by-name/md/mdk-sdk/package.nix index d193633e639a..48a2de8ac6e1 100644 --- a/pkgs/by-name/md/mdk-sdk/package.nix +++ b/pkgs/by-name/md/mdk-sdk/package.nix @@ -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" + ]; }; }