Files
nixpkgs/pkgs/development/python-modules/ds4drv/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
808 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
evdev,
pyudev,
bluez,
setuptools,
}:
buildPythonPackage rec {
pname = "ds4drv";
version = "0.5.1";
pyproject = true;
build-system = [ setuptools ];
# PyPi only carries py3 wheel
src = fetchFromGitHub {
owner = "chrippa";
repo = "ds4drv";
rev = "v${version}";
sha256 = "0vinpla0apizzykcyfis79mrm1i6fhns83nkzw85svypdhkx2g8v";
};
postPatch = ''
substituteInPlace ds4drv/config.py \
--replace-fail SafeConfigParser ConfigParser
'';
dependencies = [
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;
};
}