17 rustPlatform.buildRustPackage rec {
18 pname = "universal-android-debloater";
21 src = fetchFromGitHub {
22 owner = "Universal-Debloater-Alliance";
23 repo = "universal-android-debloater-next-generation";
25 hash = "sha256-yiCl6inPFveMO4IA2NwwpEmbRSmrZBeZR+eiKzGj6a0=";
28 cargoHash = "sha256-HqyOslcr3pwDvpZ8CNbAy2W5jGhWGWoe/rutq0leNaY=";
47 export HOME="$(mktemp -d)"
51 wrapProgram $out/bin/uad-ng \
52 --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ fontconfig freetype libglvnd libxkbcommon wayland xorg.libX11 xorg.libXcursor xorg.libXi xorg.libXrandr ]} \
53 --suffix PATH : ${lib.makeBinPath [ android-tools ]}
57 description = "Tool to debloat non-rooted Android devices";
58 changelog = "https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/blob/${src.rev}/CHANGELOG.md";
59 homepage = "https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation";
60 license = licenses.gpl3Only;
61 mainProgram = "uad-ng";
62 maintainers = with maintainers; [ lavafroth ];
63 platforms = platforms.linux;