From af958a70161eccc673b6df8eb6f8912b745c64f3 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sat, 19 Oct 2024 17:35:18 +0900 Subject: gnu: joycond: Patch /bin/setfacl in udev rules. * gnu/packages/games.scm (joycond) [phases]: Extend the 'fix-bin-location' phase. Change-Id: Ie41f822db023369d5d35f9a960a9dadf994663e8 --- gnu/packages/games.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gnu/packages/games.scm') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 2334442436..b34fdb43da 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -111,6 +111,7 @@ #:use-module (guix svn-download) #:use-module (guix gexp) #:use-module (gnu packages) + #:use-module (gnu packages acl) #:use-module (gnu packages adns) #:use-module (gnu packages algebra) #:use-module (gnu packages autotools) @@ -1782,7 +1783,7 @@ automata. The following features are available: #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-bin-location - (lambda _ + (lambda* (#:key inputs #:allow-other-keys) (substitute* "CMakeLists.txt" (("/lib/udev/rules.d") (string-append #$output "/lib/udev/rules.d")) @@ -1791,9 +1792,12 @@ automata. The following features are available: (("/etc/modules-load.d") (string-append #$output "/etc/modules-load.d")) (("/usr/bin") - (string-append #$output "/bin")))))))) + (string-append #$output "/bin"))) + (substitute* "udev/89-joycond.rules" + (("/bin/setfacl") + (search-input-file inputs "bin/setfacl")))))))) (native-inputs (list pkg-config)) - (inputs (list eudev libevdev)) + (inputs (list acl eudev libevdev)) (home-page "https://github.com/DanielOgorchock/joycond") (synopsis "Joy-Con controller daemon") (description "This package provides a userspace daemon for the Nintendo -- cgit v1.2.3