From 877bd5dc76147bb456ab90530c8353836939896f Mon Sep 17 00:00:00 2001 From: zendo Date: Sat, 19 Oct 2024 00:00:31 +0800 Subject: [PATCH] universal-android-debloater: 1.0.3 -> 1.1.0 --- .../universal-android-debloater/package.nix | 60 ++++++++++++------- 1 file changed, 37 insertions(+), 23 deletions(-) diff --git a/pkgs/by-name/un/universal-android-debloater/package.nix b/pkgs/by-name/un/universal-android-debloater/package.nix index 30803b31de5f..8fc5e35f5f7b 100644 --- a/pkgs/by-name/un/universal-android-debloater/package.nix +++ b/pkgs/by-name/un/universal-android-debloater/package.nix @@ -1,31 +1,33 @@ -{ android-tools -, clang -, expat -, fetchFromGitHub -, fontconfig -, freetype -, lib -, libglvnd -, libxkbcommon -, wayland -, makeWrapper -, mold -, pkg-config -, rustPlatform -, xorg +{ + android-tools, + clang, + expat, + fetchFromGitHub, + fontconfig, + freetype, + lib, + libglvnd, + libxkbcommon, + wayland, + makeWrapper, + mold, + pkg-config, + rustPlatform, + xorg, }: + rustPlatform.buildRustPackage rec { pname = "universal-android-debloater"; - version = "1.0.3"; + version = "1.1.0"; src = fetchFromGitHub { owner = "Universal-Debloater-Alliance"; repo = "universal-android-debloater-next-generation"; rev = "v${version}"; - hash = "sha256-yiCl6inPFveMO4IA2NwwpEmbRSmrZBeZR+eiKzGj6a0="; + hash = "sha256-o54gwFl2x0/nE1hiE5F8D18vQSNCKU9Oxiq8RA+yOoE="; }; - cargoHash = "sha256-HqyOslcr3pwDvpZ8CNbAy2W5jGhWGWoe/rutq0leNaY="; + cargoHash = "sha256-Zm0zC9GZ2IsjVp5Phd38UAiBH8n0O/i56CEURBUapAg="; buildInputs = [ expat @@ -49,17 +51,29 @@ rustPlatform.buildRustPackage rec { postInstall = '' wrapProgram $out/bin/uad-ng \ - --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ fontconfig freetype libglvnd libxkbcommon wayland xorg.libX11 xorg.libXcursor xorg.libXi xorg.libXrandr ]} \ + --prefix LD_LIBRARY_PATH : ${ + lib.makeLibraryPath [ + fontconfig + freetype + libglvnd + libxkbcommon + wayland + xorg.libX11 + xorg.libXcursor + xorg.libXi + xorg.libXrandr + ] + } \ --suffix PATH : ${lib.makeBinPath [ android-tools ]} ''; - meta = with lib; { + meta = { description = "Tool to debloat non-rooted Android devices"; changelog = "https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/blob/${src.rev}/CHANGELOG.md"; homepage = "https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation"; - license = licenses.gpl3Only; + license = lib.licenses.gpl3Only; mainProgram = "uad-ng"; - maintainers = with maintainers; [ lavafroth ]; - platforms = platforms.linux; + maintainers = with lib.maintainers; [ lavafroth ]; + platforms = lib.platforms.linux; }; }