universal-android-debloater: allow darwin

This commit is contained in:
Hannes
2026-03-03 23:16:09 +02:00
committed by Doron Behar
parent b1f349fe6c
commit 7497575c43
@@ -6,6 +6,7 @@
fontconfig,
freetype,
lib,
stdenv,
libglvnd,
libxkbcommon,
makeWrapper,
@@ -53,17 +54,19 @@ rustPlatform.buildRustPackage (finalAttrs: {
postInstall = ''
wrapProgram $out/bin/uad-ng --prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath [
fontconfig
freetype
libglvnd
libxkbcommon
wayland
libx11
libxcursor
libxi
libxrandr
]
lib.makeLibraryPath (
[
fontconfig
freetype
libglvnd
libxkbcommon
libx11
libxcursor
libxi
libxrandr
]
++ lib.optionals stdenv.hostPlatform.isLinux [ wayland ]
)
} --suffix PATH : ${lib.makeBinPath [ android-tools ]}
'';
@@ -76,6 +79,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
license = lib.licenses.gpl3Only;
mainProgram = "uad-ng";
maintainers = with lib.maintainers; [ lavafroth ];
platforms = lib.platforms.linux;
broken = with stdenv.hostPlatform; isDarwin && isx86_64;
platforms = with lib.platforms; linux ++ darwin;
};
})