guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/06: gnu: guile: Use 'modify-inputs' where appropriate.


From: guix-commits
Subject: 05/06: gnu: guile: Use 'modify-inputs' where appropriate.
Date: Wed, 29 Sep 2021 18:07:26 -0400 (EDT)

civodul pushed a commit to branch core-updates-frozen
in repository guix.

commit b00fbabdf6e5d472e0ef47d6e927045cf7a3bccc
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Sep 30 00:03:14 2021 +0200

    gnu: guile: Use 'modify-inputs' where appropriate.
    
    * gnu/packages/guile.scm (guile-3.0)[propagated-inputs]: Use
    'modify-inputs'.
    (guile-3.0/libgc-7)[propagated-inputs]: Likewise.
    (guile-for-guile-emacs)[native-inputs]: Likewise.
    * gnu/packages/make-bootstrap.scm (make-guile-static): Likewise.
---
 gnu/packages/guile.scm          | 29 +++++++++++++----------------
 gnu/packages/make-bootstrap.scm |  9 ++++-----
 2 files changed, 17 insertions(+), 21 deletions(-)

diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 5cb7ab2..c1a551f 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -63,9 +63,7 @@
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system guile)
   #:use-module (guix deprecation)
-  #:use-module (guix utils)
-  #:use-module (ice-9 match)
-  #:use-module ((srfi srfi-1) #:prefix srfi-1:))
+  #:use-module (guix utils))
 
 ;;; Commentary:
 ;;;
@@ -327,9 +325,8 @@ without requiring the source code to be rewritten.")
     ;; Build with the bundled mini-GMP to avoid interference with GnuTLS' own
     ;; use of GMP via Nettle: <https://issues.guix.gnu.org/46330>.
     (propagated-inputs
-     (srfi-1:fold srfi-1:alist-delete
-                  (package-propagated-inputs guile-2.2)
-                  '("gmp" "libltdl")))
+     (modify-inputs (package-propagated-inputs guile-2.2)
+       (delete "gmp" "libltdl")))
     (arguments
      (substitute-keyword-arguments (package-arguments guile-2.0)
        ((#:configure-flags flags ''())
@@ -394,8 +391,8 @@ without requiring the source code to be rewritten.")
    (package
      (inherit guile-3.0-latest)
      (propagated-inputs
-      `(("bdw-gc" ,libgc-7)
-        ,@(srfi-1:alist-delete "bdw-gc" (package-propagated-inputs 
guile-3.0)))))))
+      (modify-inputs (package-propagated-inputs guile-3.0)
+        (replace "bdw-gc" libgc-7))))))
 
 (define-public guile-3.0/fixed
   ;; A package of Guile that's rarely changed.  It is the one used in the
@@ -596,18 +593,18 @@ GNU@tie{}Guile.  Use the @code{(ice-9 readline)} module 
and call its
                  ;; FAIL: test-out-of-memory
                  (substitute* "test-suite/standalone/Makefile.am"
                    (("(check_SCRIPTS|TESTS) \\+= test-out-of-memory") ""))
-                 
+
                  (patch-shebang "build-aux/git-version-gen")
                  (invoke "sh" "autogen.sh")
                  #t))))))
       (native-inputs
-       `(("autoconf" ,autoconf)
-         ("automake" ,automake)
-         ("libtool" ,libtool)
-         ("flex" ,flex)
-         ("texinfo" ,texinfo)
-         ("gettext" ,gettext-minimal)
-         ,@(package-native-inputs guile-2.2))))))
+       (modify-inputs (package-native-inputs guile-2.2)
+         (prepend autoconf
+                  automake
+                  libtool
+                  flex
+                  texinfo
+                  gettext-minimal))))))
 
 
 ;;;
diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index 0014783..267adde 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -686,13 +686,12 @@ for `sh' in $PATH, and without nscd, and with static NSS 
modules."
       (outputs (delete "debug" (package-outputs guile)))
 
       (inputs
-       `(("libunistring:static" ,libunistring "static")
-         ,@(package-inputs guile)))
+       (modify-inputs (package-inputs guile)
+         (prepend `(,libunistring "static"))))
 
       (propagated-inputs
-       `(("bdw-gc" ,libgc/static-libs)
-         ,@(alist-delete "bdw-gc"
-                         (package-propagated-inputs guile))))
+       (modify-inputs (package-propagated-inputs guile)
+         (replace "bdw-gc" libgc/static-libs)))
       (arguments
        (substitute-keyword-arguments (package-arguments guile)
          ((#:configure-flags flags '())



reply via email to

[Prev in Thread] Current Thread [Next in Thread]