7 stdenv.mkDerivation (finalAttrs: {
8 pname = "game-devices-udev-rules";
11 src = fetchFromGitea {
12 domain = "codeberg.org";
14 repo = "game-devices-udev";
15 rev = finalAttrs.version;
16 hash = "sha256-dWWo3qXnxdLP68NuFKM4/Cw5yE6uAsWzj0vZa9UTT0U=";
20 install -Dm444 -t "$out/lib/udev/rules.d" *.rules
21 substituteInPlace $out/lib/udev/rules.d/71-powera-controllers.rules \
22 --replace-fail "/bin/sh" "${bash}/bin/bash"
26 description = "Udev rules to make supported controllers available with user-grade permissions";
27 homepage = "https://codeberg.org/fabiscafe/game-devices-udev";
28 license = licenses.mit;
30 These udev rules are intended to be used as a package under 'services.udev.packages'.
31 They will not be activated if installed as 'environment.systemPackages' or 'users.user.<user>.packages'.
33 Additionally, you may need to enable 'hardware.uinput'.
35 platforms = platforms.linux;
36 maintainers = with maintainers; [ keenanweaver ];