aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mcgoron/guix
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2025-08-08 10:42:27 -0400
committerGravatar Peter McGoron 2025-08-08 10:42:27 -0400
commit44433f42f14eb0c86b87555710c3d950dd300099 (patch)
tree6bacee719592db24f6e86ec2818ab06bd01429db /lib/mcgoron/guix
parentupdate README.md (diff)
rationalize packages, add foment
Diffstat (limited to 'lib/mcgoron/guix')
-rw-r--r--lib/mcgoron/guix/chibi.scm38
-rw-r--r--lib/mcgoron/guix/foment.scm40
2 files changed, 78 insertions, 0 deletions
diff --git a/lib/mcgoron/guix/chibi.scm b/lib/mcgoron/guix/chibi.scm
new file mode 100644
index 0000000..7f256b5
--- /dev/null
+++ b/lib/mcgoron/guix/chibi.scm
@@ -0,0 +1,38 @@
+#| Copyright (C) 2025 Peter McGoron
+ |
+ | This program 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 3 of the License, or (at your
+ | option) any later version.
+ |
+ | This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
+ |#
+
+(define-module (mcgoron guix chibi)
+ #:use-module (guix build-system)
+ #:use-module (guix build-system copy)
+ #:use-module (gnu packages chibi-scheme-with-path)
+ #:use-module (guix gexp))
+
+(define-public chibi-scheme-build-system
+ (let ((lower* (build-system-lower copy-build-system)))
+ (build-system
+ (name 'chibi-pure)
+ (description "Build system for copying Scheme libraries to Chibi module directory")
+ (lower
+ (lambda args
+ (apply lower*
+ (if (memq #:install-plan args)
+ args
+ (append
+ args
+ (list
+ #:install-plan
+ `'(("." ,(string-append chibi-lib-dir
+ "/"))))))))))))
diff --git a/lib/mcgoron/guix/foment.scm b/lib/mcgoron/guix/foment.scm
new file mode 100644
index 0000000..bc38da7
--- /dev/null
+++ b/lib/mcgoron/guix/foment.scm
@@ -0,0 +1,40 @@
+#| Copyright (C) 2025 Peter McGoron
+ |
+ | This program 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 3 of the License, or (at your
+ | option) any later version.
+ |
+ | This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
+ |#
+
+(define-module (mcgoron guix foment)
+ #:use-module (guix build-system)
+ #:use-module (guix build-system copy)
+ #:use-module (gnu packages foment)
+ #:use-module (guix gexp))
+
+(define-public foment-build-system
+ (let ((lower* (build-system-lower copy-build-system)))
+ (build-system
+ (name 'foment-scheme)
+ (description "Build system for copying Scheme libraries to Foment module directory")
+ (lower
+ (lambda args
+ (apply lower*
+ (if (memq #:install-plan args)
+ args
+ (append
+ args
+ (list
+ #:install-plan
+ `'(("." ,(string-append foment-lib-dir
+ "/"))))))))))))
+
+