Subject: [PATCH] gnu: libfido2: install udev rules
From: dan <[email-masked]>
To: [email-masked]
Date: Fri, 31 Dec 2021 01:00:32 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

[arguments]: Add a configure flag specifying the installation directory of the
udev rule.

---
 gnu/packages/security-token.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm
index 6a3e2d9179..719515e3ea 100644
--- a/gnu/packages/security-token.scm
+++ b/gnu/packages/security-token.scm
@@ -777,7 +777,9 @@ (define-public libfido2
        ("openssl" ,openssl)))
     (build-system cmake-build-system)
     (arguments
-     '(#:phases
+     '(#:configure-flags
+       (list (string-append "-DUDEV_RULES_DIR=" %output "/lib/udev/rules.d"))
+       #:phases
        (modify-phases %standard-phases
          ;; regress tests enabled only for debug builds
          (delete 'check))))
-- 
2.34.0