mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
import: stackage: Updater resolves inputs lazily.
Fixes the "haskell-stackage" test in 'tests/lint.scm', which started
failing with e6223017d9
because the extra
HTTP GETs induced by the 'haskell-fetch' calls would fail.
* guix/import/stackage.scm (latest-lts-release): Call 'hackage-fetch'
and its continuation from within 'inputs', which is delayed. Pass it
NAME-VERSION instead of HACKAGE-NAME-VERSION.
This commit is contained in:
parent
213d3cad6a
commit
df8b3821a8
1 changed files with 4 additions and 3 deletions
|
@ -158,13 +158,14 @@ (define latest-lts-release
|
||||||
(warning (G_ "failed to parse ~a~%")
|
(warning (G_ "failed to parse ~a~%")
|
||||||
(hackage-cabal-url hackage-name))
|
(hackage-cabal-url hackage-name))
|
||||||
#f)
|
#f)
|
||||||
(_ (let ((url (hackage-source-url hackage-name version))
|
(_ (let ((url (hackage-source-url hackage-name version)))
|
||||||
(cabal (eval-cabal (hackage-fetch hackage-name) '())))
|
|
||||||
(upstream-source
|
(upstream-source
|
||||||
(package (package-name pkg))
|
(package (package-name pkg))
|
||||||
(version version)
|
(version version)
|
||||||
(urls (list url))
|
(urls (list url))
|
||||||
(inputs (cabal-package-inputs cabal))))))))))
|
(inputs
|
||||||
|
(let ((cabal (eval-cabal (hackage-fetch name-version) '())))
|
||||||
|
(cabal-package-inputs cabal)))))))))))
|
||||||
|
|
||||||
(define (stackage-lts-package? package)
|
(define (stackage-lts-package? package)
|
||||||
"Return whether PACKAGE is available on the default Stackage LTS release."
|
"Return whether PACKAGE is available on the default Stackage LTS release."
|
||||||
|
|
Loading…
Reference in a new issue