Unverified Commit d25bad0b authored by Artturin's avatar Artturin Committed by GitHub
Browse files

universal-android-debloater: 1.0.3 -> 1.1.0 (#349670)

parents 112d5b10 877bd5dc
Loading
Loading
Loading
Loading
+37 −23
Original line number Diff line number Diff line
{ 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;
  };
}