android-udev-rules: move usage to longDescription, cleanup (#431037)

authored by Aleksana and committed by GitHub 4087c751 9916b356

+14 -12
+14 -12
pkgs/by-name/an/android-udev-rules/package.nix
··· 4 fetchFromGitHub, 5 udevCheckHook, 6 }: 7 - 8 - ## Usage 9 - # In NixOS, simply add this package to services.udev.packages: 10 - # services.udev.packages = [ pkgs.android-udev-rules ]; 11 - 12 - stdenv.mkDerivation rec { 13 pname = "android-udev-rules"; 14 version = "20250525"; 15 16 src = fetchFromGitHub { 17 owner = "M0Rf30"; 18 repo = "android-udev-rules"; 19 - rev = version; 20 hash = "sha256-4ODU9EoVYV+iSu6+M9ePed45QkOZgWkDUlFTlWJ8ttQ="; 21 }; 22 ··· 31 ]; 32 doInstallCheck = true; 33 34 - meta = with lib; { 35 homepage = "https://github.com/M0Rf30/android-udev-rules"; 36 description = "Android udev rules list aimed to be the most comprehensive on the net"; 37 - platforms = platforms.linux; 38 - license = licenses.gpl3Plus; 39 - maintainers = with maintainers; [ abbradar ]; 40 teams = [ lib.teams.android ]; 41 }; 42 - }
··· 4 fetchFromGitHub, 5 udevCheckHook, 6 }: 7 + stdenv.mkDerivation (finalAttrs: { 8 pname = "android-udev-rules"; 9 version = "20250525"; 10 11 src = fetchFromGitHub { 12 owner = "M0Rf30"; 13 repo = "android-udev-rules"; 14 + rev = finalAttrs.version; 15 hash = "sha256-4ODU9EoVYV+iSu6+M9ePed45QkOZgWkDUlFTlWJ8ttQ="; 16 }; 17 ··· 26 ]; 27 doInstallCheck = true; 28 29 + meta = { 30 homepage = "https://github.com/M0Rf30/android-udev-rules"; 31 description = "Android udev rules list aimed to be the most comprehensive on the net"; 32 + longDescription = '' 33 + Android udev rules list aimed to be the most comprehensive on the net. 34 + To use on NixOS, simply add this package to services.udev.packages: 35 + ```nix 36 + services.udev.packages = [ pkgs.android-udev-rules ]; 37 + ``` 38 + ''; 39 + platforms = lib.platforms.linux; 40 + license = lib.licenses.gpl3Plus; 41 + maintainers = [ lib.maintainers.abbradar ]; 42 teams = [ lib.teams.android ]; 43 }; 44 + })