[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: |
Fri, 8 Oct 2021 03:20:37 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit 127828ddd74fc950c0403ca58a6f650355e3d67d
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 master updated (3fc0fa9 -> c8a7ba6), guix-commits, 2021/10/08
- 01/24: guix: haskell-build-system: Always pass -package-db option., guix-commits, 2021/10/08
- 03/24: import: stackage: Update %default-lts-version to 18.10., guix-commits, 2021/10/08
- 02/24: gnu: ghc-8: Update to 8.10., guix-commits, 2021/10/08
- 06/24: build-system/haskell: Do not rely on compiler name., guix-commits, 2021/10/08
- 04/24: import: hackage: Update GHC’s standard libraries., guix-commits, 2021/10/08
- 08/24: import: hackage: Support mirror:// URLs, guix-commits, 2021/10/08
- 05/24: import: stackage: Support input changes.,
guix-commits <=
- 09/24: build-system/haskell: Explain failure., guix-commits, 2021/10/08
- 07/24: build-system/haskell: Accept line breaks in config files., guix-commits, 2021/10/08
- 10/24: gnu: Update Haskell ecosystem., guix-commits, 2021/10/08
- 11/24: gnu: cabal-install: Build with GHC 8.10., guix-commits, 2021/10/08
- 12/24: gnu: hedgewars: Fix build., guix-commits, 2021/10/08
- 15/24: gnu: idris: Fix build., guix-commits, 2021/10/08
- 13/24: gnu: ruby-pandoc-ruby: Disable tests., guix-commits, 2021/10/08
- 14/24: gnu: ghc-silently: Remove unused input., guix-commits, 2021/10/08
- 16/24: gnu: ngless: Fix build., guix-commits, 2021/10/08
- 17/24: gnu: python-pypandoc: Upgrade to 1.6.4., guix-commits, 2021/10/08