unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: phodina via Guix-patches via <guix-patches@gnu.org>
To: 51044@debbugs.gnu.org
Subject: [bug#51044] Subject: [PATCH] gnu: Add joycond.
Date: Tue, 05 Oct 2021 22:08:46 +0000	[thread overview]
Message-ID: <Jex10YwrEwIGeHO1MrwDOLp12eGLOwexaJKI8ErCJ8_OIrtKAZg4lfagXmfDhbGySvPxON_0qca0BUGJz_OtzN3WJDjrSfjtKeplMKRSol4=@protonmail.com> (raw)

Hi,

I've placed the package in games.scm as it's a daemon for gaming controllers. Suggestions for better locations are welcome.

Petr

--8<---------------cut here---------------start------------->8---

* gnu/packages/games.scm (joycond): New variable.

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index dabbbe6ea1..a8599e1f29 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -1490,6 +1490,42 @@ automata.  The following features are available:
 @end enumerate")
     (license license:gpl2+)))

+(define-public joycond
+  (let ((commit "f9a66914622514c13997c2bf7ec20fa98e9dfc1d")
+        (revision "1"))
+    (package
+      (name "joycond")
+      (version (git-version "0.1.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/DanielOgorchock/joycond")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "07z86yp27vxc0b44jgvf1vpa69rh3wdvd1xbzcsrj3f32743pv5a"))))
+      (build-system cmake-build-system)
+      (arguments
+       `(#:tests? #f ; no test suite
+         #:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'fix-bin-location
+             (lambda* _
+               (substitute* "CMakeLists.txt"
+                 (("/lib/udev/rules.d") (string-append %output "/lib/udev/rules.d"))
+                 (("/etc/systemd/system") (string-append %output "/etc/systemd/system"))
+                 (("/etc/modules-load.d") (string-append %output "/etc/modules-load.d"))
+                 (("/usr/bin") (string-append %output "/bin"))))))))
+      (native-inputs `(("pkg-config" ,pkg-config)))
+      (inputs `(("libevdev" ,libevdev)
+                ("eudev" ,eudev)))
+      (synopsis "Joy-con controller daemon")
+      (description "This package provides a userspace daemon for the joy-con
+controllers.")
+      (home-page "https://github.com/DanielOgorchock/joycond")
+      (license license:gpl3))))
+
 (define-public julius
   (package
     (name "julius")
--
2.32.0




             reply	other threads:[~2021-10-05 22:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-05 22:08 phodina via Guix-patches via [this message]
2021-10-08 10:16 ` bug#51044: Subject: [PATCH] gnu: Add joycond Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='Jex10YwrEwIGeHO1MrwDOLp12eGLOwexaJKI8ErCJ8_OIrtKAZg4lfagXmfDhbGySvPxON_0qca0BUGJz_OtzN3WJDjrSfjtKeplMKRSol4=@protonmail.com' \
    --to=guix-patches@gnu.org \
    --cc=51044@debbugs.gnu.org \
    --cc=phodina@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).