[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62202] [PATCH v2 09/23] DRAFT import: juliahub: Filter out julia st
From: |
Simon Tournier |
Subject: |
[bug#62202] [PATCH v2 09/23] DRAFT import: juliahub: Filter out julia stdlibs. |
Date: |
Mon, 18 Sep 2023 20:03:16 +0200 |
From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org>
Signed-off-by: Simon Tournier <zimon.toutoune@gmail.com>
---
guix/import/juliahub.scm | 49 ++++++++++++++++++++++++++++++++++++++--
1 file changed, 47 insertions(+), 2 deletions(-)
diff --git a/guix/import/juliahub.scm b/guix/import/juliahub.scm
index c38c830caaa0..af08f3d698d0 100644
--- a/guix/import/juliahub.scm
+++ b/guix/import/juliahub.scm
@@ -38,6 +38,47 @@ (define-module (guix import juliahub)
%juliahub-updater
juliahub-recursive-import))
+;; To update, see file sysimg.jl
+(define %julia-stdlibs
+ (list "julia"
+ "ArgTools"
+ "Artifacts"
+ "Base64"
+ "CRC32c"
+ "FileWatching"
+ "Libdl"
+ "Logging"
+ "Mmap"
+ "NetworkOptions"
+ "SHA"
+ "Serialization"
+ "Sockets"
+ "Unicode"
+ "DelimitedFiles"
+ "LinearAlgebra"
+ "Markdown"
+ "Printf"
+ "Random"
+ "Tar"
+ "Dates"
+ "Distributed"
+ "Future"
+ "InteractiveUtils"
+ "LibGit2"
+ "Profile"
+ "SparseArrays"
+ "UUIDs"
+ "REPL"
+ "SharedArrays"
+ "Statistics"
+ "SuiteSparse"
+ "TOML"
+ "Test"
+ "LibCURL"
+ "Downloads"
+ "Pkg"
+ "LazyArtifacts"))
+
(define (juliahub-uri name)
(let* ((url (string-append "https://docs.juliahub.com/" name "/"))
(port (http-fetch url #:text? #t))
@@ -64,7 +105,9 @@ (define (json->juliahub-direct-dependencies vector)
(filter-map
(lambda (el)
(let ((dep (json->juliahub-dependency el)))
- (if (juliahub-dependency-direct? dep)
+ (if (and (juliahub-dependency-direct? dep)
+ (not (member (juliahub-dependency-name dep)
+ %julia-stdlibs)))
dep
#f)))
(vector->list vector))))
@@ -74,7 +117,9 @@ (define (json->juliahub-indirect-dependencies vector)
(filter-map
(lambda (el)
(let ((dep (json->juliahub-dependency el)))
- (if (not (juliahub-dependency-direct? dep))
+ (if (and (not (juliahub-dependency-direct? dep))
+ (not (member (juliahub-dependency-name dep)
+ %julia-stdlibs)))
dep
#f)))
(vector->list vector))))
--
2.38.1
- [bug#62202] [PATCH v2 16/23] DRAFT import: juliahub: Filter out stdlibs from test-dependencies., (continued)
- [bug#62202] [PATCH v2 16/23] DRAFT import: juliahub: Filter out stdlibs from test-dependencies., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 04/23] DRAFT import: Add julia., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 20/23] DRAFT import: juliahub: Fix version management., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 22/23] DRAFT import: juliahub: output package names as symbols., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 12/23] DRAFT import: juliahub: Add functions to parse the git repo for a git tag., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 23/23] DRAFT guix: import: julia: Fix beautify., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 06/23] DRAFT import: juliahub: Correct source parsing., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 18/23] DRAFT import: juliahub: Beautify description., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 15/23] DRAFT import: juliahub: Add support for versions for juliahub-fetch., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 05/23] DRAFT import: juliahub: Add support for native-inputs., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 09/23] DRAFT import: juliahub: Filter out julia stdlibs.,
Simon Tournier <=
- [bug#62202] [PATCH v2 14/23] DRAFT import: juliahub: Handle the case where we have a subdirectory., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 17/23] DRAFT import: juliahub: More robust toml regex parser., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 11/23] DRAFT import: juliahub: Improve dependency management., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 13/23] DRAFT import: juliahub: Improve test dependencies parsing., Simon Tournier, 2023/09/18
- [bug#66080] [PATCH v2 19/23] DRAFT import: juliahub: Fix license management., Simon Tournier, 2023/09/18
- [bug#62202] [PATCH v2 21/23] DRAFT import: juliahub: Fix undefined homepages., Simon Tournier, 2023/09/18