2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
# In NixOS, simply add this package to services.udev.packages:
|
|
|
|
# services.udev.packages = [ pkgs.android-udev-rules ];
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "android-udev-rules";
|
2020-10-27 00:29:36 +00:00
|
|
|
version = "20200613";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "M0Rf30";
|
|
|
|
repo = "android-udev-rules";
|
|
|
|
rev = version;
|
2020-10-27 00:29:36 +00:00
|
|
|
sha256 = "0cf5br8x6iwxc1cifv0i1klw7skgs8hghdx6qlqby68kyqg81bb2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D 51-android.rules $out/lib/udev/rules.d/51-android.rules
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/M0Rf30/android-udev-rules";
|
|
|
|
description = "Android udev rules list aimed to be the most comprehensive on the net";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|