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>master
parent
26f46cfd2a
commit
e121ecccdc
|
@ -366,20 +366,19 @@ website for more information about Yubico and the YubiKey.")
|
||||||
"0yxk97aj29pybvya6r9ix9xh00hdzcfrc2lcns4vb3kwpplamjr3"))))
|
"0yxk97aj29pybvya6r9ix9xh00hdzcfrc2lcns4vb3kwpplamjr3"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
;; By setting an absolute path here, we arrange for OpenSC to
|
#~(modify-phases %standard-phases
|
||||||
;; successfully dlopen libpcsclite.so.1 by default. The user can
|
;; By setting an absolute path here, we arrange for OpenSC to
|
||||||
;; still override this if they want to, by specifying a custom OpenSC
|
;; successfully dlopen libpcsclite.so.1 by default. The user can
|
||||||
;; configuration file at runtime.
|
;; still override this if they want to, by specifying a custom OpenSC
|
||||||
(add-after 'unpack 'set-default-libpcsclite.so.1-path
|
;; configuration file at runtime.
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(add-after 'unpack 'set-default-libpcsclite.so.1-path
|
||||||
(let ((libpcsclite (search-input-file inputs
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
"/lib/libpcsclite.so.1")))
|
(let ((libpcsclite (search-input-file inputs "/lib/libpcsclite.so.1")))
|
||||||
(substitute* "configure"
|
(substitute* "configure"
|
||||||
(("DEFAULT_PCSC_PROVIDER=\"libpcsclite\\.so\\.1\"")
|
(("DEFAULT_PCSC_PROVIDER=\"libpcsclite\\.so\\.1\"")
|
||||||
(string-append
|
(string-append "DEFAULT_PCSC_PROVIDER=\"" libpcsclite "\"")))))))))
|
||||||
"DEFAULT_PCSC_PROVIDER=\"" libpcsclite "\"")))))))))
|
|
||||||
(inputs
|
(inputs
|
||||||
(list readline openssl-1.1 pcsc-lite ccid))
|
(list readline openssl-1.1 pcsc-lite ccid))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Reference in New Issue