forked from mirrors/nixpkgs
steamcontroller: init at 2017-08-11
This commit is contained in:
parent
c3b98dcead
commit
aa6a18a6d9
35
pkgs/misc/drivers/steamcontroller/default.nix
Normal file
35
pkgs/misc/drivers/steamcontroller/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ stdenv, lib, fetchFromGitHub, python3Packages, libusb1, linuxHeaders
|
||||
, GyroplotSupport ? false
|
||||
}:
|
||||
|
||||
with python3Packages;
|
||||
|
||||
buildPythonApplication rec {
|
||||
name = "steamcontroller-${version}";
|
||||
version = "2017-08-11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ynsta";
|
||||
repo = "steamcontroller";
|
||||
rev = "80928ce237925e0d0d7a65a45b481435ba6b931e";
|
||||
sha256 = "0lv9j2zv8fmkmc0x9r7fa8zac2xrwfczms35qz1nfa1hr84wniid";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/uinput.py --replace \
|
||||
"/usr/include" "${linuxHeaders}/include"
|
||||
'';
|
||||
|
||||
buildInputs = [ libusb1 ];
|
||||
propagatedBuildInputs =
|
||||
[ psutil python3Packages.libusb1 ]
|
||||
++ lib.optionals GyroplotSupport [ pyqtgraph pyside ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A standalone Steam controller driver";
|
||||
homepage = https://github.com/ynsta/steamcontroller;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ rnhmjoj ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -19746,6 +19746,8 @@ with pkgs;
|
|||
|
||||
splix = callPackage ../misc/cups/drivers/splix { };
|
||||
|
||||
steamcontroller = callPackage ../misc/drivers/steamcontroller { };
|
||||
|
||||
streamripper = callPackage ../applications/audio/streamripper { };
|
||||
|
||||
sqsh = callPackage ../development/tools/sqsh { };
|
||||
|
|
Loading…
Reference in a new issue