[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/24: import: stackage: Support input changes.
From: |
guix-commits |
Subject: |
05/24: import: stackage: Support input changes. |
Date: |
Thu, 7 Oct 2021 09:21:13 -0400 (EDT) |
lbraun pushed a commit to branch wip-haskell
in repository guix.
commit a2d8285b160c38cbd697eb90fba940d820bcff95
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Thu Sep 16 08:12:17 2021 +0200
import: stackage: Support input changes.
* guix/import/stackage.scm (latest-lts-release): Rename package to pkg
to avoid name conflict and add input-changes.
---
guix/import/stackage.scm | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/guix/import/stackage.scm b/guix/import/stackage.scm
index c7247f5..f58c6b1 100644
--- a/guix/import/stackage.scm
+++ b/guix/import/stackage.scm
@@ -139,10 +139,10 @@ included in the Stackage LTS release."
(mlambda ()
(stackage-lts-packages
(stackage-lts-info-fetch %default-lts-version)))))
- (lambda* (package)
+ (lambda* (pkg)
"Return an <upstream-source> for the latest Stackage LTS release of
PACKAGE or #f if the package is not included in the Stackage LTS release."
- (let* ((hackage-name (guix-package->hackage-name package))
+ (let* ((hackage-name (guix-package->hackage-name pkg))
(version (lts-package-version (packages) hackage-name))
(name-version (hackage-name-version hackage-name version)))
(match (and=> name-version hackage-fetch)
@@ -152,9 +152,13 @@ PACKAGE or #f if the package is not included in the
Stackage LTS release."
#f)
(_ (let ((url (hackage-source-url hackage-name version)))
(upstream-source
- (package (package-name package))
+ (package (package-name pkg))
(version version)
- (urls (list url))))))))))
+ (urls (list url))
+ (input-changes
+ (changed-inputs
+ pkg
+ (stackage->guix-package hackage-name #:packages
(packages))))))))))))
(define (stackage-lts-package? package)
"Return whether PACKAGE is available on the default Stackage LTS release."
- branch wip-haskell created (now 1511199), guix-commits, 2021/10/07
- 02/24: gnu: ghc-8: Update to 8.10., guix-commits, 2021/10/07
- 05/24: import: stackage: Support input changes.,
guix-commits <=
- 01/24: guix: haskell-build-system: Always pass -package-db option., guix-commits, 2021/10/07
- 10/24: gnu: Update Haskell ecosystem., guix-commits, 2021/10/07
- 09/24: build-system/haskell: Explain failure., guix-commits, 2021/10/07
- 11/24: gnu: cabal-install: Build with GHC 8.10., guix-commits, 2021/10/07
- 12/24: gnu: hedgewars: Fix build., guix-commits, 2021/10/07
- 16/24: gnu: ngless: Fix build., guix-commits, 2021/10/07
- 18/24: gnu: ghc-repline: Remove version 0.2.0.0., guix-commits, 2021/10/07
- 15/24: gnu: idris: Fix build., guix-commits, 2021/10/07
- 21/24: gnu: pigx-sars-cov2-ww: Remove dependency on pandoc-citeproc., guix-commits, 2021/10/07
- 14/24: gnu: ghc-silently: Remove unused input., guix-commits, 2021/10/07