1{ stdenv, fetchgit }:
2
3stdenv.mkDerivation {
4 name = "android-udev-rules-20150920";
5
6 src = fetchgit {
7 url = "https://github.com/M0Rf30/android-udev-rules";
8 rev = "d2e89a3f6deb096071b15e18b9e3608a02d62437";
9 sha256 = "bdc553a1eb4efc4e85866f61f50f2c2f7b8d09d2eb5122afad7c9b38e0fdc4fb";
10 };
11
12 installPhase = ''
13 install -D 51-android.rules $out/lib/udev/rules.d/51-android.rules
14 '';
15
16 meta = with stdenv.lib; {
17 homepage = https://github.com/M0Rf30/android-udev-rules;
18 description = "Android udev rules list aimed to be the most comprehensive on the net";
19 platforms = platforms.linux;
20 license = licenses.gpl3;
21 maintainers = with maintainers; [ abbradar ];
22 };
23}