From 7c60e8f8083d0e2175b0c0c0545f48db63d52ffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 18 Oct 2022 10:21:11 +0200 Subject: [PATCH] gnu: guix: Switch to Guile-GnuTLS. This is a followup to a1cd93083bbf7b8af2bc463d7a9b4352aebe6eb6. * gnu/packages/package-management.scm (guix)[arguments]: Refer to "guile-gnutls" instead of "gnutls". [native-inputs, propagated-inputs]: Replace 'gnutls' with 'guile-gnutls'. [inputs]: Add 'zlib'. (guix-daemon): Replace 'gnutls' with 'guile-gnutls'. (guix-build-coordinator)[arguments, propagated-inputs, native-inputs]: Replace 'gnutls' with 'guile-gnutls'. (guix-build-coordinator/agent-only): Likewise. (nar-herder): Likewise. --- gnu/packages/package-management.scm | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 9b24c3a848..dab1e230cf 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -350,7 +350,7 @@ (define code (bs (assoc-ref inputs "guile-bytestructures")) (ssh (assoc-ref inputs "guile-ssh")) - (gnutls (assoc-ref inputs "gnutls")) + (gnutls (assoc-ref inputs "guile-gnutls")) (disarchive (assoc-ref inputs "disarchive")) (lzma (assoc-ref inputs "guile-lzma")) (locales (assoc-ref inputs "glibc-utf8-locales")) @@ -406,7 +406,7 @@ (define code ;; Guile libraries are needed here for ;; cross-compilation. ("guile" ,guile-3.0-latest) ;for faster builds - ("gnutls" ,gnutls) + ("guile-gnutls" ,guile-gnutls) ,@(if (%current-target-system) '() `(("guile-avahi" ,guile-avahi))) @@ -435,6 +435,7 @@ (define code ("gzip" ,gzip) ("sqlite" ,sqlite) ("libgcrypt" ,libgcrypt) + ("zlib" ,zlib) ("guile" ,guile-3.0-latest) @@ -463,7 +464,7 @@ (define code ("glibc-utf8-locales" ,glibc-utf8-locales))) (propagated-inputs - `(("gnutls" ,gnutls) + `(("guile-gnutls" ,guile-gnutls) ;; Avahi requires "glib" which doesn't cross-compile yet. ,@(if (%current-target-system) '() @@ -550,7 +551,7 @@ (define-public guix-daemon (inputs (modify-inputs (package-inputs guix) (delete "boot-guile" "boot-guile/i686" "util-linux") - (prepend gnutls guile-git guile-json-3 guile-gcrypt))) + (prepend guile-gnutls guile-git guile-json-3 guile-gcrypt))) (propagated-inputs '()) @@ -1414,7 +1415,7 @@ (define-public guix-build-coordinator "guile-lzlib" "guile-zlib" "guile-sqlite3" - "gnutls" + "guile-gnutls" ,@(if (hurd-target?) '() '("guile-fibers"))))) @@ -1458,7 +1459,7 @@ (define-public guix-build-coordinator (list pkg-config autoconf automake - gnutls + guile-gnutls ;; Guile libraries are needed here for cross-compilation. guile-json-4 @@ -1486,7 +1487,7 @@ (define-public guix-build-coordinator guile-zlib guile-sqlite3 guix - gnutls) + guile-gnutls) (if (hurd-target?) '() (list guile-fibers-1.1)))) @@ -1535,7 +1536,7 @@ (define-public guix-build-coordinator/agent-only "guile-lzlib" "guile-zlib" "guile-sqlite3" - "gnutls"))) + "guile-gnutls"))) (wrap-program file `("PATH" ":" prefix (,bin)) `("GUILE_LOAD_PATH" ":" prefix @@ -1563,7 +1564,7 @@ (define-public guix-build-coordinator/agent-only (list pkg-config autoconf automake - gnutls + guile-gnutls ;; Guile libraries are needed here for cross-compilation. guile-json-4 @@ -1584,7 +1585,7 @@ (define-public guix-build-coordinator/agent-only guile-lzlib guile-zlib guix - gnutls))) + guile-gnutls))) (description "The Guix Build Coordinator helps with performing lots of builds across potentially many machines, and with doing something with the results and @@ -1721,7 +1722,7 @@ (define-public nar-herder "guile-lzlib" "guile-prometheus" "guile-sqlite3" - "gnutls" + "guile-gnutls" "guile-fibers"))) (wrap-program file `("GUILE_LOAD_PATH" ":" prefix @@ -1748,7 +1749,7 @@ (define-public nar-herder (list pkg-config autoconf automake - gnutls + guile-gnutls ;; Guile libraries are needed here for cross-compilation. (car (assoc-ref (package-native-inputs guix) "guile")) @@ -1772,7 +1773,7 @@ (define-public nar-herder guile-lib guile-lzlib guile-sqlite3 - gnutls)) + guile-gnutls)) (home-page "https://git.cbaines.net/guix/nar-herder") (synopsis "Utility for managing and serving nars") (description