mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
Merge pull request #239974 from keenanweaver/game-devices-udev-rules
game-devices-udev-rules: init at 0.21
This commit is contained in:
commit
4aff42c720
@ -8414,6 +8414,12 @@
|
||||
githubId = 37185887;
|
||||
name = "Calvin Kim";
|
||||
};
|
||||
keenanweaver = {
|
||||
email = "keenanweaver@protonmail.com";
|
||||
name = "Keenan Weaver";
|
||||
github = "keenanweaver";
|
||||
githubId = 37268985;
|
||||
};
|
||||
keksbg = {
|
||||
email = "keksbg@riseup.net";
|
||||
name = "Stella";
|
||||
|
37
pkgs/os-specific/linux/game-devices-udev-rules/default.nix
Normal file
37
pkgs/os-specific/linux/game-devices-udev-rules/default.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitea,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "game-devices-udev-rules";
|
||||
version = "0.21";
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
owner = "fabiscafe";
|
||||
repo = "game-devices-udev";
|
||||
rev = version;
|
||||
hash = "sha256-Yy91yDF5BSDTTlr/Pj8e0UklPooEdzvRW8mkhdHtHVo=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm444 -t "$out/lib/udev/rules.d" *.rules
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Udev rules to make supported controllers available with user-grade permissions";
|
||||
homepage = "https://codeberg.org/fabiscafe/game-devices-udev";
|
||||
license = licenses.mit;
|
||||
longDescription = ''
|
||||
These udev rules are intended to be used as a package under 'services.udev.packages'.
|
||||
They will not be activated if installed as 'environment.systemPackages' or 'users.user.<user>.packages'.
|
||||
|
||||
Additionally, you may need to enable 'hardware.uinput'.
|
||||
'';
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [keenanweaver];
|
||||
};
|
||||
}
|
@ -28647,6 +28647,8 @@ with pkgs;
|
||||
|
||||
freepats = callPackage ../data/misc/freepats { };
|
||||
|
||||
game-devices-udev-rules = callPackage ../os-specific/linux/game-devices-udev-rules { };
|
||||
|
||||
garamond-libre = callPackage ../data/fonts/garamond-libre { };
|
||||
|
||||
g15daemon = callPackage ../os-specific/linux/g15daemon { };
|
||||
|
Loading…
Reference in New Issue
Block a user