summaryrefslogtreecommitdiff
path: root/tests/hackage.scm
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-11-02 17:48:09 +0100
committerLudovic Courtès <ludo@gnu.org>2021-12-01 17:53:25 +0100
commit39f4ef59ffc37259de40f67c476a1a720aa8d007 (patch)
treee390543a1aae3f1233cc6795f95d9173488406aa /tests/hackage.scm
parenta955e4d7f6843bd7dc804ea69ccdef953f4780bc (diff)
build-system: haskell: Add ‘hackage-uri’ procedure.
* guix/build-system/haskell (hackage-uri): New procedure. * guix/import/hackage.scm (hackage-module->sexp, latest-release): Use it. * tests/hackage.scm (match-ghc-foo, match-ghc-foo-6, match-ghc-foo-revision, match-ghc-foo-import): Adjust accordingly. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests/hackage.scm')
-rw-r--r--tests/hackage.scm20
1 files changed, 4 insertions, 16 deletions
diff --git a/tests/hackage.scm b/tests/hackage.scm
index aca807027cc..ba694661f3f 100644
--- a/tests/hackage.scm
+++ b/tests/hackage.scm
@@ -170,10 +170,7 @@ library
170 ('source 170 ('source
171 ('origin 171 ('origin
172 ('method 'url-fetch) 172 ('method 'url-fetch)
173 ('uri ('string-append 173 ('uri ('hackage-uri "foo" 'version))
174 "https://hackage.haskell.org/package/foo/foo-"
175 'version
176 ".tar.gz"))
177 ('sha256 174 ('sha256
178 ('base32 175 ('base32
179 (? string? hash))))) 176 (? string? hash)))))
@@ -215,10 +212,7 @@ library
215 ('source 212 ('source
216 ('origin 213 ('origin
217 ('method 'url-fetch) 214 ('method 'url-fetch)
218 ('uri ('string-append 215 ('uri ('hackage-uri "foo" 'version))
219 "https://hackage.haskell.org/package/foo/foo-"
220 'version
221 ".tar.gz"))
222 ('sha256 216 ('sha256
223 ('base32 217 ('base32
224 (? string? hash))))) 218 (? string? hash)))))
@@ -343,10 +337,7 @@ executable cabal
343 ('source 337 ('source
344 ('origin 338 ('origin
345 ('method 'url-fetch) 339 ('method 'url-fetch)
346 ('uri ('string-append 340 ('uri ('hackage-uri "foo" 'version))
347 "https://hackage.haskell.org/package/foo/foo-"
348 'version
349 ".tar.gz"))
350 ('sha256 341 ('sha256
351 ('base32 342 ('base32
352 (? string? hash))))) 343 (? string? hash)))))
@@ -409,10 +400,7 @@ executable cabal
409 ('source 400 ('source
410 ('origin 401 ('origin
411 ('method 'url-fetch) 402 ('method 'url-fetch)
412 ('uri ('string-append 403 ('uri ('hackage-uri "foo" 'version))
413 "https://hackage.haskell.org/package/foo/foo-"
414 'version
415 ".tar.gz"))
416 ('sha256 404 ('sha256
417 ('base32 405 ('base32
418 (? string? hash))))) 406 (? string? hash)))))