mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: opensc: Switch to new package style.
* gnu/packages/security-token.scm (opensc)[arguments]: Use g-exps. Change-Id: I3e59323deb804ba98669d51771ccfa05a92723e3 Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
26f46cfd2a
commit
e121ecccdc
1 changed files with 13 additions and 14 deletions
|
@ -366,20 +366,19 @@ (define-public opensc
|
|||
"0yxk97aj29pybvya6r9ix9xh00hdzcfrc2lcns4vb3kwpplamjr3"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
;; By setting an absolute path here, we arrange for OpenSC to
|
||||
;; successfully dlopen libpcsclite.so.1 by default. The user can
|
||||
;; still override this if they want to, by specifying a custom OpenSC
|
||||
;; configuration file at runtime.
|
||||
(add-after 'unpack 'set-default-libpcsclite.so.1-path
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((libpcsclite (search-input-file inputs
|
||||
"/lib/libpcsclite.so.1")))
|
||||
(substitute* "configure"
|
||||
(("DEFAULT_PCSC_PROVIDER=\"libpcsclite\\.so\\.1\"")
|
||||
(string-append
|
||||
"DEFAULT_PCSC_PROVIDER=\"" libpcsclite "\"")))))))))
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; By setting an absolute path here, we arrange for OpenSC to
|
||||
;; successfully dlopen libpcsclite.so.1 by default. The user can
|
||||
;; still override this if they want to, by specifying a custom OpenSC
|
||||
;; configuration file at runtime.
|
||||
(add-after 'unpack 'set-default-libpcsclite.so.1-path
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((libpcsclite (search-input-file inputs "/lib/libpcsclite.so.1")))
|
||||
(substitute* "configure"
|
||||
(("DEFAULT_PCSC_PROVIDER=\"libpcsclite\\.so\\.1\"")
|
||||
(string-append "DEFAULT_PCSC_PROVIDER=\"" libpcsclite "\"")))))))))
|
||||
(inputs
|
||||
(list readline openssl-1.1 pcsc-lite ccid))
|
||||
(native-inputs
|
||||
|
|
Loading…
Reference in a new issue