gnu: r-curl: Respect CURL_CA_BUNDLE variable.
* gnu/packages/web.scm (r-curl)[arguments]: Add phase "allow-CURL_CA_BUNDLE".
This commit is contained in:
parent
646a84338d
commit
8f309571d3
|
@ -3287,6 +3287,20 @@ applications.")
|
||||||
(base32
|
(base32
|
||||||
"04fwasg400v8dvkcn1fcha1jzdz8lbyxi0679q7flsyrp57b3jrf"))))
|
"04fwasg400v8dvkcn1fcha1jzdz8lbyxi0679q7flsyrp57b3jrf"))))
|
||||||
(build-system r-build-system)
|
(build-system r-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
;; The environment variable CURL_CA_BUNDLE is only respected when
|
||||||
|
;; running Windows, so we disable the platform checks.
|
||||||
|
;; This can be removed once the libcurl has been patched.
|
||||||
|
(add-after 'unpack 'allow-CURL_CA_BUNDLE
|
||||||
|
(lambda _
|
||||||
|
(substitute* "R/onload.R"
|
||||||
|
(("if \\(!grepl\\(\"mingw\".*")
|
||||||
|
"if (FALSE)\n"))
|
||||||
|
(substitute* "src/handle.c"
|
||||||
|
(("#ifdef _WIN32") "#if 1"))
|
||||||
|
#t)))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("libcurl" ,curl)))
|
`(("libcurl" ,curl)))
|
||||||
(home-page "https://github.com/jeroenooms/curl")
|
(home-page "https://github.com/jeroenooms/curl")
|
||||||
|
|
Loading…
Reference in New Issue