diff options
| author | Arun Isaac | 2026-09-24 02:01:24 +0100 |
|---|---|---|
| committer | Arun Isaac | 2026-09-24 02:48:41 +0100 |
| commit | f6bba70391b887588c9c4652a683db89bb4ecb3a (patch) | |
| tree | 08a5404eaa1e259c861d699d82728b5a7eb3e48b /.guix | |
| parent | 70c50d83b0ba1bcafe9af7f6d4c114290a2147cc (diff) | |
| download | guile-xapian-f6bba70391b887588c9c4652a683db89bb4ecb3a.tar.gz guile-xapian-f6bba70391b887588c9c4652a683db89bb4ecb3a.tar.lz guile-xapian-f6bba70391b887588c9c4652a683db89bb4ecb3a.zip | |
Move website G-expression to separate file.
Diffstat (limited to '.guix')
| -rw-r--r-- | .guix/guile-xapian-package.scm | 44 | ||||
| -rw-r--r-- | .guix/guile-xapian-website.scm | 69 |
2 files changed, 69 insertions, 44 deletions
diff --git a/.guix/guile-xapian-package.scm b/.guix/guile-xapian-package.scm index ce16b7a..bf7e65c 100644 --- a/.guix/guile-xapian-package.scm +++ b/.guix/guile-xapian-package.scm @@ -19,15 +19,12 @@ (define-module (guile-xapian-package) #:use-module ((gnu packages autotools) #:select (autoconf autoconf-archive automake libtool)) - #:use-module ((gnu packages emacs) #:select (emacs-minimal)) #:use-module ((gnu packages guile) #:select (guile-2.2)) #:use-module ((gnu packages guile-xyz) #:prefix guix:) #:use-module ((gnu packages guile-xyz) #:select (guile-run64)) - #:use-module ((guix build-system guile) #:select (%guile-build-system-modules)) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix packages) - #:use-module (guix profiles) #:use-module (guix utils)) (define-public guile2.2-run64 @@ -62,45 +59,4 @@ (modify-inputs (package-native-inputs guix:guile2.2-xapian) (prepend autoconf autoconf-archive automake libtool guile2.2-run64))))) -(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)) - - (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))))) - -(define-public guile-xapian-website - (computed-file "guile-xapian-website" guile-xapian-website-gexp)) - guile-xapian diff --git a/.guix/guile-xapian-website.scm b/.guix/guile-xapian-website.scm new file mode 100644 index 0000000..9df20a6 --- /dev/null +++ b/.guix/guile-xapian-website.scm @@ -0,0 +1,69 @@ +;;; guile-xapian --- Guile bindings for Xapian +;;; Copyright © 2026 Arun Isaac <arunisaac@systemreboot.net> +;;; +;;; This file is part of guile-xapian. +;;; +;;; guile-xapian is free software: you can redistribute it and/or +;;; modify it under the terms of the GNU General Public License as +;;; published by the Free Software Foundation, either version 2 of the +;;; License, or (at your option) any later version. +;;; +;;; guile-xapian is distributed in the hope that it will be useful, +;;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;;; General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with guile-xapian. If not, see +;;; <https://www.gnu.org/licenses/>. + +(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)) + + (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))))) + +(define-public guile-xapian-website + (computed-file "guile-xapian-website" guile-xapian-website-gexp)) + +guile-xapian-website |
