Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchFromGitHub, python3Packages }: 2 3buildPythonPackage rec { 4 pname = "persistent-evdev"; 5 version = "unstable-2022-05-07"; 6 format = "other"; 7 8 src = fetchFromGitHub { 9 owner = "aiberia"; 10 repo = pname; 11 rev = "52bf246464e09ef4e6f2e1877feccc7b9feba164"; 12 sha256 = "d0i6DL/qgDELet4ew2lyVqzd9TApivRxL3zA3dcsQXY="; 13 }; 14 15 propagatedBuildInputs = with python3Packages; [ 16 evdev pyudev 17 ]; 18 19 postPatch = '' 20 patchShebangs bin/persistent-evdev.py 21 ''; 22 23 dontBuild = true; 24 25 installPhase = '' 26 mkdir -p $out/bin 27 cp bin/persistent-evdev.py $out/bin 28 29 mkdir -p $out/etc/udev/rules.d 30 cp udev/60-persistent-input-uinput.rules $out/etc/udev/rules.d 31 ''; 32 33 # has no tests 34 doCheck = false; 35 36 meta = with lib; { 37 homepage = "https://github.com/aiberia/persistent-evdev"; 38 description = "Persistent virtual input devices for qemu/libvirt/evdev hotplug support"; 39 license = licenses.mit; 40 maintainers = [ maintainers.lodi ]; 41 platforms = platforms.linux; 42 }; 43}