Unverified Commit a9440ea0 authored by Masum Reza's avatar Masum Reza Committed by GitHub
Browse files

android-udev-rules: drop (#454366)

parents 3896f812 c06ad375
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -180,6 +180,8 @@

- `proton-caller` has been removed due to lack of upstream maintenance.

- `android-udev-rules` has been removed, as it is effectively superseded by built-in uaccess rules in systemd.

- `lima` package now only includes the guest agent for the host's architecture by default. If your guest VM's architecture differs from your Lima host's, you'll need to enable the `lima-additional-guestagents` package by setting `withAdditionalGuestAgents = true` when overriding lima with this input.

- `mongodb-6_0` was removed as it is end of life as of 2025-07-31.
+0 −4
Original line number Diff line number Diff line
@@ -16,8 +16,6 @@
        type = lib.types.bool;
        description = ''
          Whether to configure system to use Android Debug Bridge (adb).
          To grant access to a user, it must be part of adbusers group:
          `users.users.alice.extraGroups = ["adbusers"];`
        '';
      };
    };
@@ -25,8 +23,6 @@

  ###### implementation
  config = lib.mkIf config.programs.adb.enable {
    services.udev.packages = [ pkgs.android-udev-rules ];
    environment.systemPackages = [ pkgs.android-tools ];
    users.groups.adbusers = { };
  };
}
+0 −1
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ in
    services.udev = {
      enable = true;
      packages = with pkgs; [
        android-udev-rules
        xr-hardware
      ];
    };
+0 −1
Original line number Diff line number Diff line
@@ -217,7 +217,6 @@ in
    };

    services = {
      udev.packages = with pkgs; [ android-udev-rules ];
      avahi = {
        enable = true;
        publish = {
+0 −44
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  udevCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "android-udev-rules";
  version = "20250525";

  src = fetchFromGitHub {
    owner = "M0Rf30";
    repo = "android-udev-rules";
    rev = finalAttrs.version;
    hash = "sha256-4ODU9EoVYV+iSu6+M9ePed45QkOZgWkDUlFTlWJ8ttQ=";
  };

  installPhase = ''
    runHook preInstall
    install -D 51-android.rules $out/lib/udev/rules.d/51-android.rules
    runHook postInstall
  '';

  nativeBuildInputs = [
    udevCheckHook
  ];
  doInstallCheck = true;

  meta = {
    homepage = "https://github.com/M0Rf30/android-udev-rules";
    description = "Android udev rules list aimed to be the most comprehensive on the net";
    longDescription = ''
      Android udev rules list aimed to be the most comprehensive on the net.
      To use on NixOS, simply add this package to services.udev.packages:
      ```nix
      services.udev.packages = [ pkgs.android-udev-rules ];
      ```
    '';
    platforms = lib.platforms.linux;
    license = lib.licenses.gpl3Plus;
    maintainers = [ ];
    teams = [ lib.teams.android ];
  };
})
Loading