aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2025-04-10 16:32:39 -0400
committerGravatar Peter McGoron 2025-04-10 16:32:39 -0400
commit0acdcb6512fe8ee6642ef941aae4a08252c7fc8f (patch)
treea4d8094a2b9c74374b7d299ff697a87b5ce47320 /examples
chibi libraries
Diffstat (limited to '')
-rw-r--r--examples/hello-world.scm41
-rw-r--r--examples/hello-world/hello-world.sld6
2 files changed, 47 insertions, 0 deletions
diff --git a/examples/hello-world.scm b/examples/hello-world.scm
new file mode 100644
index 0000000..19790d7
--- /dev/null
+++ b/examples/hello-world.scm
@@ -0,0 +1,41 @@
+#| 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/>.
+ |#
+
+(use-modules (mcgoron guix chibi)
+ (guix packages)
+ (guix gexp)
+ (guix licenses))
+
+(package
+ (name "hello-world-chibi")
+ (version "1.0")
+ (synopsis "Prints hello world")
+ (description "Prints hello world")
+ (license asl2.0)
+ (home-page "https://example.com")
+ (source (local-file "hello-world" #:recursive? #t))
+ (build-system chibi-scheme-build-system)
+ (inputs (list chibi-scheme-with-path)))
+
+#;(pure-chibi-scheme-library (chibi/search-path)
+ "hello-world"
+ "1.0"
+ "Prints hello world"
+ "Prints hello world"
+ asl2.0
+ "https://example.com"
+ "hello-world")
+
diff --git a/examples/hello-world/hello-world.sld b/examples/hello-world/hello-world.sld
new file mode 100644
index 0000000..234a593
--- /dev/null
+++ b/examples/hello-world/hello-world.sld
@@ -0,0 +1,6 @@
+(define-library (hello-world)
+ (import (scheme base) (scheme write))
+ (export hello-world)
+ (begin
+ (define (hello-world)
+ (display "hello, world\n")))) \ No newline at end of file