[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/24: import: hackage: Support mirror:// URLs
From: |
guix-commits |
Subject: |
08/24: import: hackage: Support mirror:// URLs |
Date: |
Fri, 8 Oct 2021 03:20:40 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit edd912a128cf467050c1a76a021d91ea8b90e759
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Fri Sep 17 11:09:04 2021 +0200
import: hackage: Support mirror:// URLs
* guix/import/hackage.scm (guix-package->hackage-name): Support
mirror://-style URI’s.
(hackage-package?): Ditto.
---
guix/import/hackage.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/guix/import/hackage.scm b/guix/import/hackage.scm
index 0a10c42..03881f1 100644
--- a/guix/import/hackage.scm
+++ b/guix/import/hackage.scm
@@ -121,12 +121,12 @@ version is returned."
(string-append package-name-prefix (string-downcase name))))
(define guix-package->hackage-name
- (let ((uri-rx (make-regexp
"https?://hackage.haskell.org/package/([^/]+)/.*"))
+ (let ((uri-rx (make-regexp
"(https?://hackage.haskell.org|mirror://hackage)/package/([^/]+)/.*"))
(name-rx (make-regexp "(.*)-[0-9\\.]+")))
(lambda (package)
"Given a Guix package name, return the corresponding Hackage name."
(let* ((source-url (and=> (package-source package) origin-uri))
- (name (match:substring (regexp-exec uri-rx source-url) 1)))
+ (name (match:substring (regexp-exec uri-rx source-url) 2)))
(match (regexp-exec name-rx name)
(#f name)
(m (match:substring m 1)))))))
@@ -353,7 +353,7 @@ respectively."
#:guix-name hackage-name->package-name))
(define hackage-package?
- (let ((hackage-rx (make-regexp "https?://hackage.haskell.org")))
+ (let ((hackage-rx (make-regexp
"(https?://hackage.haskell.org|mirror://hackage/)")))
(url-predicate (cut regexp-exec hackage-rx <>))))
(define (latest-release package)
- 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 <=
- 05/24: import: stackage: Support input changes., guix-commits, 2021/10/08
- 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