gnu: yubikey-personalization: Fix build with GCC 10.

* gnu/packages/security-token.scm (yubikey-personalization)[source](modules,
snippet): New fields.
This commit is contained in:
Marius Bakke 2021-05-17 20:48:00 +02:00
parent 97ae2ed24b
commit 57e0040537
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -370,7 +370,14 @@ (define-public yubikey-personalization
"/Releases/ykpers-" version ".tar.gz"))
(sha256
(base32
"14wvlwqnwj0gllkpvfqiy8ns938bwvjsz8x1hmymmx32m074vj0f"))))
"14wvlwqnwj0gllkpvfqiy8ns938bwvjsz8x1hmymmx32m074vj0f"))
(modules '((guix build utils)))
(snippet
;; Fix build with GCC 10, remove for versions > 1.20.0.
'(begin
(substitute* "ykpers-args.h"
(("^const char")
"extern const char"))))))
(build-system gnu-build-system)
(arguments
'(#:configure-flags (list (string-append "--with-udevrulesdir="