nixpkgs/pkgs/development/python-modules/ds4drv/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

30 lines
637 B
Nix

{ lib, fetchFromGitHub, buildPythonPackage
, evdev, pyudev
, bluez
}:
buildPythonPackage rec {
pname = "ds4drv";
version = "0.5.1";
format = "setuptools";
# PyPi only carries py3 wheel
src = fetchFromGitHub {
owner = "chrippa";
repo = "ds4drv";
rev = "v${version}";
sha256 = "0vinpla0apizzykcyfis79mrm1i6fhns83nkzw85svypdhkx2g8v";
};
propagatedBuildInputs = [ evdev pyudev ];
buildInputs = [ bluez ];
meta = {
description = "Userspace driver for the DualShock 4 controller";
mainProgram = "ds4drv";
homepage = "https://github.com/chrippa/ds4drv";
license = lib.licenses.mit;
};
}