Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 34 lines 923 B view raw
1{ lib, fetchFromGitHub, python3Packages, libusb1, linuxHeaders 2}: 3 4with python3Packages; 5 6buildPythonApplication { 7 pname = "steamcontroller"; 8 version = "2017-08-11"; 9 10 src = fetchFromGitHub { 11 owner = "ynsta"; 12 repo = "steamcontroller"; 13 rev = "80928ce237925e0d0d7a65a45b481435ba6b931e"; 14 sha256 = "0lv9j2zv8fmkmc0x9r7fa8zac2xrwfczms35qz1nfa1hr84wniid"; 15 }; 16 17 postPatch = '' 18 substituteInPlace src/uinput.py --replace \ 19 "/usr/include" "${linuxHeaders}/include" 20 ''; 21 22 buildInputs = [ libusb1 ]; 23 propagatedBuildInputs = [ psutil python3Packages.libusb1 ]; 24 doCheck = false; 25 pythonImportsCheck = [ "steamcontroller" ]; 26 27 meta = with lib; { 28 description = "A standalone Steam controller driver"; 29 homepage = "https://github.com/ynsta/steamcontroller"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ rnhmjoj ]; 32 platforms = platforms.linux; 33 }; 34}