mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #264419 from Noodlez1232/joycond-cemuhook
joycond-cemuhook: init at unstable-2023-08-09
This commit is contained in:
commit
00bee09724
3 changed files with 60 additions and 0 deletions
|
@ -13226,6 +13226,13 @@
|
|||
githubId = 40049608;
|
||||
name = "Andy Chun";
|
||||
};
|
||||
noodlez1232 = {
|
||||
email = "contact@nathanielbarragan.xyz";
|
||||
matrix = "@noodlez1232:matrix.org";
|
||||
github = "Noodlez1232";
|
||||
githubId = 12480453;
|
||||
name = "Nathaniel Barragan";
|
||||
};
|
||||
nook = {
|
||||
name = "Tom Nook";
|
||||
email = "0xnook@protonmail.com";
|
||||
|
|
17
nixos/modules/programs/joycond-cemuhook.nix
Normal file
17
nixos/modules/programs/joycond-cemuhook.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
with lib;
|
||||
{
|
||||
options.programs.joycond-cemuhook = {
|
||||
enable = mkEnableOption (lib.mdDoc "joycond-cemuhook, a program to enable support for cemuhook's UDP protocol for joycond devices.");
|
||||
};
|
||||
|
||||
config = lib.mkIf config.programs.joycond-cemuhook.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.services.joycond.enable;
|
||||
message = "joycond must be enabled through `services.joycond.enable`";
|
||||
}
|
||||
];
|
||||
environment.systemPackages = [ pkgs.joycond-cemuhook ];
|
||||
};
|
||||
}
|
36
pkgs/by-name/jo/joycond-cemuhook/package.nix
Normal file
36
pkgs/by-name/jo/joycond-cemuhook/package.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ lib, python3Packages, fetchFromGitHub}:
|
||||
|
||||
python3Packages.buildPythonApplication {
|
||||
pname = "joycond-cemuhook";
|
||||
pyproject = true;
|
||||
version = "unstable-2023-08-09";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "joaorb64";
|
||||
repo = "joycond-cemuhook";
|
||||
rev = "3c0e07374ff431a0f8ae70dbb0b5a62fb3de06ee";
|
||||
hash = "sha256-K24CEmYWhgkvVX4geg2bylH8TSvHIpsWjsPwY5BpquI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with python3Packages; [
|
||||
setuptools
|
||||
setuptools-git-versioning
|
||||
setuptools-git
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
dbus-python
|
||||
evdev
|
||||
pyudev
|
||||
termcolor
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/joaorb64/joycond-cemuhook";
|
||||
description = "Support for cemuhook's UDP protocol for joycond devices";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.noodlez1232 ];
|
||||
mainProgram = "joycond-cemuhook";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue