GNU bug report logs - #44051
[PATCH] website: Update manifest.

Previous Next

Package: guix-patches;

Reported by: zimoun <zimon.toutoune <at> gmail.com>

Date: Sun, 18 Oct 2020 00:02:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44051 in the body.
You can then email your comments to 44051 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#44051; Package guix-patches. (Sun, 18 Oct 2020 00:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to zimoun <zimon.toutoune <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 18 Oct 2020 00:02:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: zimoun <zimon.toutoune <at> gmail.com>
Subject: [PATCH] website: Update manifest.
Date: Sun, 18 Oct 2020 02:01:06 +0200
* website/guix.packages: Rename to...
* website/manifest.scm: ...this.
* website/README: Update.
---
 website/README        | 27 ++++++++++++++++++++++-----
 website/guix.packages | 16 ----------------
 website/manifest.scm  | 30 ++++++++++++++++++++++++++++++
 3 files changed, 52 insertions(+), 21 deletions(-)
 delete mode 100644 website/guix.packages
 create mode 100644 website/manifest.scm

diff --git a/website/README b/website/README
index 64b09c1..9ef044f 100644
--- a/website/README
+++ b/website/README
@@ -14,21 +14,38 @@ following command to install all the software needed to build the
 website:
 
 #+BEGIN_EXAMPLE
-$ guix package -i git glibc-locales gnutls guile guile-json guile-syntax-highlight guix haunt
+  guix package -m manifest.scm
 #+END_EXAMPLE
 
+*Note*: the packages =guix= and =haunt= should have the same version of Guile,
+otherwise building the website is slow and raises bunch of warnings.  The
+manifest file takes care.
+
 * Running the website
 
 To try out the website locally while you work on it, run the following
 commands:
 
 #+BEGIN_EXAMPLE
-$ cd path/to/guix-artwork/website
-$ export GUILE_LOAD_PATH=$(guix build guile-syntax-highlight)/share/guile/site/3.0:$GUILE_LOAD_PATH
-$ LC_ALL=en_US.utf8 GUIX_WEB_SITE_LOCAL=yes haunt build
-$ haunt serve
+  cd path/to/guix-artwork/website
 #+END_EXAMPLE
 
+** Build locally
+#+begin_example
+  GUIX_WEB_SITE_LOCAL=yes guix environment -C -m manifest.scm                            \
+                          -E GUIX_LOCPATH -E LANG --share=$HOME/.guix-profile/lib/locale \
+                          -E GUIX_WEB_SITE_LOCAL  --share=/tmp                           \
+                          -- haunt build
+#+end_example
+
+** Serve locally
+#+begin_example
+  guix environment -CN -m manifest.scm                                \
+       -E GUIX_LOCPATH -E LANG --share=$HOME/.guix-profile/lib/locale \
+       --share=/tmp                                                   \
+       -- haunt serve -w
+#+end_example
+
 Then, visit http://localhost:8080/en/guix.html in a web browser.
 
 You can stop the server pressing ~Ctrl + C~ twice.
diff --git a/website/guix.packages b/website/guix.packages
deleted file mode 100644
index 386307c..0000000
--- a/website/guix.packages
+++ /dev/null
@@ -1,16 +0,0 @@
-;;; Packages required to develop the website.
-;;; (See guix package --manifest option for more details on this file).
-
-(use-modules (guix profiles)
-	     (gnu packages))
-
-
-(define dev-packages
-  (list "glibc-locales"
-	"guile <at> 2.2"
-	"guile-syntax-highlight"
-	"guix"
-	"haunt"))
-
-
-(map specification->package dev-packages)
diff --git a/website/manifest.scm b/website/manifest.scm
new file mode 100644
index 0000000..eda382a
--- /dev/null
+++ b/website/manifest.scm
@@ -0,0 +1,30 @@
+(use-modules (guix packages)
+             ((gnu packages package-management) #:select (guix))
+             ((gnu packages guile-xyz)          #:select (haunt))
+             (srfi srfi-1))
+
+(define the-good-guile
+  (car (assoc-ref (package-native-inputs guix) "guile")))
+
+(define haunt-the-ghost
+  (package
+    (inherit haunt)
+    (name "haunt-for-guix-website")
+    (inputs
+     `(("guile" ,the-good-guile)
+       ,@(alist-delete "guile" (package-inputs haunt))))))
+
+(packages->manifest
+ (append
+  ;; Guile needs to be compatible
+  (list
+   guix
+   the-good-guile
+   haunt-the-ghost)
+
+  ;; Other packages
+  (map specification->package
+       (list
+        "glibc-locales"
+        "git"
+        "guile-syntax-highlight"))))

base-commit: 2e0252dfa809d5a38ce87245764d936b659c16b4
prerequisite-patch-id: 977ecbddcfeb54b30cf8874ecf70ce1d7e41fecb
-- 
2.28.0





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Mon, 19 Oct 2020 08:32:01 GMT) Full text and rfc822 format available.

Notification sent to zimoun <zimon.toutoune <at> gmail.com>:
bug acknowledged by developer. (Mon, 19 Oct 2020 08:32:02 GMT) Full text and rfc822 format available.

Message #10 received at 44051-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 44051-done <at> debbugs.gnu.org
Subject: Re: [bug#44051] [PATCH] website: Update manifest.
Date: Mon, 19 Oct 2020 10:31:15 +0200
Hi,

zimoun <zimon.toutoune <at> gmail.com> skribis:

> * website/guix.packages: Rename to...
> * website/manifest.scm: ...this.
> * website/README: Update.

Applied, thanks!  :-)

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 16 Nov 2020 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 210 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.