diff --git a/guix/import/stackage.scm b/guix/import/stackage.scm index f8b2726591..00814c7d46 100644 --- a/guix/import/stackage.scm +++ b/guix/import/stackage.scm @@ -158,13 +158,14 @@ (define latest-lts-release (warning (G_ "failed to parse ~a~%") (hackage-cabal-url hackage-name)) #f) - (_ (let ((url (hackage-source-url hackage-name version)) - (cabal (eval-cabal (hackage-fetch hackage-name) '()))) + (_ (let ((url (hackage-source-url hackage-name version))) (upstream-source (package (package-name pkg)) (version version) (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) "Return whether PACKAGE is available on the default Stackage LTS release."