unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: ericbavier@centurylink.net
To: 33010@debbugs.gnu.org
Cc: Eric Bavier <bavier@cray.com>
Subject: [bug#33010] [PATCH 2/3] gnu: Add guix-minimal.
Date: Wed, 10 Oct 2018 20:52:45 -0500	[thread overview]
Message-ID: <20181011015246.24964-3-ericbavier@centurylink.net> (raw)
In-Reply-To: <20181011015246.24964-1-ericbavier@centurylink.net>

From: Eric Bavier <bavier@cray.com>

* gnu/packages/guile.scm (guile-2.0.13): New variable.
* gnu/packages/package-management.scm (guix)[arguments]: Adjust 'wrap-program'
phase to handle "missing" inputs.
(guix-minimal): New variable.
---
 gnu/packages/guile.scm              | 14 ++++++++++++++
 gnu/packages/package-management.scm | 17 +++++++++++++++--
 2 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 912b0218e..216f7c6d5 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -226,6 +226,20 @@ without requiring the source code to be rewritten.")
    (home-page "https://www.gnu.org/software/guile/")
    (license license:lgpl3+)))
 
+(define-public guile-2.0.13
+  ;; For testing a "minimal" Guix
+  (hidden-package
+   (package (inherit guile-2.0)
+            (name "guile")
+            (version "2.0.13")
+            (source (origin
+                      (method url-fetch)
+                      (uri (string-append "mirror://gnu/guile/guile-" version
+                                          ".tar.xz"))
+                      (sha256
+                       (base32
+                        "12yqkr974y91ylgw6jnmci2v90i90s7h9vxa4zk0sai8vjnz4i1p")))))))
+
 (define-public guile-2.2
   (package (inherit guile-2.0)
     (name "guile")
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index 000c28632..4ddcb55f4 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -232,13 +232,13 @@
                                         (map (cut string-append <>
                                                   "/share/guile/site/"
                                                   effective)
-                                             deps)
+                                             (delete #f deps))
                                         ":"))
                                (gopath (string-join
                                         (map (cut string-append <>
                                                   "/lib/guile/" effective
                                                   "/site-ccache")
-                                             deps)
+                                             (delete #f deps))
                                         ":")))
 
                           (wrap-program (string-append out "/bin/guix")
@@ -371,6 +371,19 @@ the Nix package manager.")
        ("guile-ssh" ,guile2.0-ssh)
        ("guile-git" ,guile2.0-git)))))
 
+(define-public guix-minimal
+  (let ((guix guile2.0-guix))
+    (package
+      (inherit guix)
+      (name "guix-minimal")
+      (inputs
+       `(("guile" ,guile-2.0.13)
+         ,@(alist-delete "guile" (package-inputs guix))))
+      (propagated-inputs
+       (fold alist-delete
+             (package-propagated-inputs guix)
+             '("guile-json" "guile-ssh"))))))
+
 (define (source-file? file stat)
   "Return true if FILE is likely a source file, false if it is a typical
 generated file."
-- 
2.19.0

  parent reply	other threads:[~2018-10-11  1:54 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-11  1:52 [bug#33009] [PATCH 0/3] Some guile@2.0 patches ericbavier
2018-10-11  1:52 ` [bug#33011] [PATCH 1/3] gnu: guile2.0-guix: Fix build ericbavier
2018-10-14 21:39   ` Ludovic Courtès
2018-10-16 22:35     ` bug#33011: " Eric Bavier
2018-10-11  1:52 ` ericbavier [this message]
2018-10-14 21:42   ` [bug#33010] [PATCH 2/3] gnu: Add guix-minimal Ludovic Courtès
2018-10-15  9:02     ` Efraim Flashner
2018-10-15 15:46       ` Jonathan Brielmaier
2018-10-15 19:26         ` Ludovic Courtès
2018-10-15 14:21     ` Eric Bavier
2018-10-15 19:28       ` Ludovic Courtès
2018-10-15 19:43         ` Eric Bavier
2018-10-16 11:28           ` Ludovic Courtès
2018-10-16 22:33             ` bug#33010: " Eric Bavier
2018-10-11  1:52 ` [bug#33012] [PATCH 3/3] ui: Fix port-buffering with guile@2.0 ericbavier
2018-10-14 21:43   ` Ludovic Courtès
2018-10-16 22:31     ` bug#33012: " Eric Bavier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181011015246.24964-3-ericbavier@centurylink.net \
    --to=ericbavier@centurylink.net \
    --cc=33010@debbugs.gnu.org \
    --cc=bavier@cray.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).