about summary refs log tree commit diff
path: root/.guix/guile-xapian-website.scm
diff options
context:
space:
mode:
authorArun Isaac2026-09-24 02:13:14 +0100
committerArun Isaac2026-09-24 02:48:48 +0100
commitee735bfd4eda7cc51a61951e9bc86bc3771b4b05 (patch)
tree586a9c53cfee86624d677ee447fd97b8e8dd0d63 /.guix/guile-xapian-website.scm
parentf6bba70391b887588c9c4652a683db89bb4ecb3a (diff)
downloadguile-xapian-ee735bfd4eda7cc51a61951e9bc86bc3771b4b05.tar.gz
guile-xapian-ee735bfd4eda7cc51a61951e9bc86bc3771b4b05.tar.lz
guile-xapian-ee735bfd4eda7cc51a61951e9bc86bc3771b4b05.zip
Build website entirely with G-expressions.
We can now build the website without any of the autotools tooling.
Diffstat (limited to '.guix/guile-xapian-website.scm')
-rw-r--r--.guix/guile-xapian-website.scm47
1 files changed, 10 insertions, 37 deletions
diff --git a/.guix/guile-xapian-website.scm b/.guix/guile-xapian-website.scm
index 9df20a6..9944157 100644
--- a/.guix/guile-xapian-website.scm
+++ b/.guix/guile-xapian-website.scm
@@ -19,49 +19,22 @@
 
 (define-module (guile-xapian-website)
   #:use-module ((gnu packages emacs) #:select (emacs-minimal))
-  #:use-module ((guix build-system guile) #:select (%guile-build-system-modules))
   #:use-module (guix gexp)
   #:use-module (guix packages)
-  #:use-module (guix profiles)
   #:use-module ((guile-xapian-package) #:select (guile-xapian)))
 
 (define guile-xapian-website-gexp
-  (let ((development-profile
-         (profile
-           (content (package->development-manifest guile-xapian)))))
-    (with-imported-modules %guile-build-system-modules
-      #~(begin
-          (use-modules (guix build guile-build-system)
-                       (guix build utils))
+  (with-imported-modules '((guix build utils))
+    #~(begin
+        (use-modules (guix build utils))
 
-          (copy-recursively #$(package-source guile-xapian)
-                            (getcwd))
-          (set-path-environment-variable
-           "PATH" (list "/bin") (list #$emacs-minimal #$development-profile))
-          (set-path-environment-variable
-           "C_INCLUDE_PATH" (list "/include") (list #$development-profile))
-          (set-path-environment-variable
-           "CPLUS_INCLUDE_PATH" (list "/include") (list #$development-profile))
-          (set-path-environment-variable
-           "LIBRARY_PATH" (list "/lib") (list #$development-profile))
-          (set-path-environment-variable
-           "ACLOCAL_PATH" (list "/share/aclocal") (list #$development-profile))
-          (set-path-environment-variable
-           "PKG_CONFIG_PATH" (list "/lib/pkgconfig") (list #$development-profile))
-          (set-path-environment-variable
-           "GUILE_LOAD_PATH"
-           (list (string-append "/share/guile/site/"
-                                (target-guile-effective-version)))
-           (list #$development-profile))
-          (set-path-environment-variable
-           "GUILE_LOAD_COMPILED_PATH"
-           (list (string-append "/lib/guile/" (target-guile-effective-version) "/site-ccache"))
-           (list #$development-profile))
-          (invoke "autoreconf" "--verbose" "--install" "--force")
-          (patch-shebang "configure")
-          (invoke "./configure" "CONFIG_SHELL=sh" "SHELL=sh")
-          (invoke "make" "website")
-          (copy-recursively "website" #$output)))))
+        (copy-recursively #$(package-source guile-xapian)
+                          (getcwd))
+        (invoke #$(file-append emacs-minimal "/bin/emacs")
+                "--quick" "--batch"
+                "--load" "build-aux/build-home-page.el"
+                "--funcall" "build-website")
+        (copy-recursively "website" #$output))))
 
 (define-public guile-xapian-website
   (computed-file "guile-xapian-website" guile-xapian-website-gexp))