aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2024-01-12 12:47:33 +0000
committerArun Isaac2024-01-12 12:47:33 +0000
commit0dd84b647cccaf5c868668262f3989c1e350fabc (patch)
tree61875e59763a34af368fe358d0c56500d5dd831b
parent3dbc5bced7d323cdd7a531ae46507cc9738662c7 (diff)
downloadguile-email-0dd84b647cccaf5c868668262f3989c1e350fabc.tar.gz
guile-email-0dd84b647cccaf5c868668262f3989c1e350fabc.tar.lz
guile-email-0dd84b647cccaf5c868668262f3989c1e350fabc.zip
guix: Add G-expression computed-file to build website.
* .guix/guile-email-package.scm: Import coreutils and gnu-make from (gnu packages base), emacs-minimal from (gnu packages emacs), texinfo from (gnu packages texinfo). (guile-email-website-gexp, guile-email-website): New variables.
-rw-r--r--.guix/guile-email-package.scm21
1 files changed, 20 insertions, 1 deletions
diff --git a/.guix/guile-email-package.scm b/.guix/guile-email-package.scm
index 64f74cd..84c4b5a 100644
--- a/.guix/guile-email-package.scm
+++ b/.guix/guile-email-package.scm
@@ -1,5 +1,5 @@
;;; guile-email --- Guile email parser
-;;; Copyright © 2019, 2023 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2019, 2023–2024 Arun Isaac <arunisaac@systemreboot.net>
;;;
;;; This file is part of guile-email.
;;;
@@ -18,8 +18,11 @@
;;; <http://www.gnu.org/licenses/>.
(define-module (guile-email-package)
+ #:use-module ((gnu packages base) #:select (coreutils gnu-make))
+ #:use-module ((gnu packages emacs) #:select (emacs-minimal))
#:use-module ((gnu packages guile-xyz)
#:select (guile-email guile2.2-email) #:prefix guix:)
+ #:use-module ((gnu packages texinfo) #:select (texinfo))
#:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix packages)
@@ -48,4 +51,20 @@
(define-public guile2.2-email
(make-guile-email guix:guile2.2-email))
+(define guile-email-website-gexp
+ (with-imported-modules '((guix build utils))
+ #~(begin
+ (use-modules (guix build utils))
+
+ (set-path-environment-variable
+ "PATH" (list "/bin") (list #$coreutils #$emacs-minimal
+ #$gnu-make #$texinfo))
+ (copy-recursively #$(package-source guile-email)
+ (getcwd))
+ (invoke "make" "website")
+ (copy-recursively "website" #$output))))
+
+(define-public guile-email-website
+ (computed-file "guile-email-website" guile-email-website-gexp))
+
guile-email