lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 23.05-pre 42 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, libusb1 }: 2 3stdenv.mkDerivation rec { 4 pname = "ipad_charge"; 5 version = "2015-02-03"; 6 7 src = fetchFromGitHub { 8 sha256 = "0f40hqx1dbqpwrhyf42h5982jwqv8j5zp5hwwakz6600hyqvnnz7"; 9 rev = "bb24e1c3a79016cfdffb9d28189485766d655ec6"; 10 repo = "ipad_charge"; 11 owner = "mkorenkov"; 12 }; 13 14 buildInputs = [ libusb1 ]; 15 16 postPatch = '' 17 substituteInPlace Makefile \ 18 --replace " -o root -g root" "" \ 19 --replace "/usr" "$out" \ 20 --replace "/etc/udev" "$out/lib/udev" 21 substituteInPlace *.rules \ 22 --replace "/usr" "$out" 23 ''; 24 25 enableParallelBuilding = true; 26 27 preInstall = '' 28 mkdir -p $out/{bin,lib/udev/rules.d} 29 ''; 30 31 meta = with lib; { 32 inherit (src.meta) homepage; 33 description = "Apple device USB charging utility for Linux"; 34 longDescription = '' 35 USB charging control utility used to enable/disable charging of an Apple 36 device connected to USB port. For a list of supported devices, see 37 https://github.com/mkorenkov/ipad_charge#supported-devices. 38 ''; 39 license = licenses.gpl2Plus; 40 platforms = platforms.linux; 41 }; 42}