summary refs log tree commit diff
path: root/pkgs/os-specific/linux/android-udev-rules/default.nix
blob: b30e0f61b1b573affed1da2d49d033390741547d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, fetchgit }:

stdenv.mkDerivation {
  name = "android-udev-rules";

  src = fetchgit {
    url = "git://github.com/M0Rf30/android-udev-rules";
    rev = "2cc51a456ccfbca338c4e6b76211645aaac631e9";
    sha256 = "dbf1614cebb466d1adbcc5f17cefc0c37f148f9e3b46443b3e82f6cd19a1514f";
  };

  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 ];
  };
}