diff options
-rw-r--r-- | .guix/guile-email-package.scm | 21 |
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 |