aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.guix/guile-kolam-package.scm23
1 files changed, 22 insertions, 1 deletions
diff --git a/.guix/guile-kolam-package.scm b/.guix/guile-kolam-package.scm
index 17daa95..45e8742 100644
--- a/.guix/guile-kolam-package.scm
+++ b/.guix/guile-kolam-package.scm
@@ -1,5 +1,5 @@
;;; kolam --- GraphQL implementation
-;;; Copyright © 2022, 2023 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2022–2024 Arun Isaac <arunisaac@systemreboot.net>
;;;
;;; This file is part of kolam.
;;;
@@ -18,6 +18,10 @@
;;; <http://www.gnu.org/licenses/>.
(define-module (guile-kolam-package)
+ #:use-module ((gnu packages base) #:select (gnu-make))
+ #:use-module ((gnu packages bash) #:select (bash-minimal))
+ #:use-module ((gnu packages emacs) #:select (emacs-minimal))
+ #:use-module ((gnu packages guile) #:select (guile-3.0))
#:use-module ((gnu packages guile-xyz)
#:select (guile-kolam) #:prefix guix:)
#:use-module (guix gexp)
@@ -34,4 +38,21 @@
#:select? (or (git-predicate (dirname (current-source-directory)))
(const #t))))))
+(define guile-kolam-website-gexp
+ (with-imported-modules '((guix build utils))
+ #~(begin
+ (use-modules (guix build utils))
+
+ (set-path-environment-variable
+ "PATH" (list "/bin") (list #$bash-minimal #$emacs-minimal
+ #$gnu-make #$guile-3.0))
+ (copy-recursively #$(package-source guile-kolam)
+ (getcwd))
+ (invoke "sh" "configure")
+ (invoke "make" "website")
+ (copy-recursively "website" #$output))))
+
+(define-public guile-kolam-website
+ (computed-file "guile-kolam-website" guile-kolam-website-gexp))
+
guile-kolam