snow-fort-guix-channel/README.md

75 lines
1.7 KiB
Markdown
Raw Normal View History

2024-10-06 09:33:19 -04:00
[Snow fort](https://snow-fort.org) packages as [Guix](https://guix.gnu.org/)
[channel](https://guix.gnu.org/manual/en/html_node/Channels.html).
The relevant part of Guix manual is
[Additional Channels](https://guix.gnu.org/manual/en/html_node/Specifying-Additional-Channels.html).
2024-10-11 02:48:56 -04:00
But here are short instructions anyway.
2024-10-06 09:33:19 -04:00
2024-10-11 02:47:27 -04:00
## Note about dependencies
2024-10-07 10:28:04 -04:00
2024-10-11 02:48:09 -04:00
Only libraries which are in snow-fort and not (scheme ...) or (srfi ...) are added to the Guix
package as dependency.
2024-10-07 10:28:04 -04:00
2024-10-11 02:47:27 -04:00
See the part about installing srfi-libraries for more details.
2024-10-07 10:28:04 -04:00
2024-10-06 09:33:19 -04:00
## Add the Guix channell
Copy this:
2024-10-11 02:48:56 -04:00
<pre>
2024-10-11 02:49:14 -04:00
(cons (channel
(name 'snow-fort)
(url "https://gitea.scheme.org/Rinne/snow-fort-guix-channel.git"))
%default-channels)
2024-10-11 02:48:56 -04:00
</pre>
2024-10-06 09:33:19 -04:00
Into:
~/.config/guix/channels.scm
2024-10-06 10:07:08 -04:00
## Update the channels
2024-10-06 09:33:19 -04:00
2024-10-06 10:07:08 -04:00
Run:
guix pull
2024-10-11 03:04:18 -04:00
## Installing packages
2024-10-06 09:33:19 -04:00
2024-10-11 02:54:39 -04:00
The packages have been prefixed with "snow-", and spaces replaced with "-".
2024-10-11 03:04:18 -04:00
So for example to install package (arvyy mustache) run:
2024-10-11 02:47:27 -04:00
guix install snow-arvyy-mustache
2024-10-11 02:42:00 -04:00
2024-10-11 02:47:27 -04:00
or:
2024-10-07 10:28:04 -04:00
2024-10-11 02:47:27 -04:00
guix shell snow-arvyy-mustache
2024-10-06 12:18:52 -04:00
2024-10-11 03:04:18 -04:00
## Using the libraries
When you install a library it will be in path:
2024-10-11 02:50:04 -04:00
${SNOW_LIBRARY_PATH}/usr/lib/snow
2024-10-06 12:18:52 -04:00
2024-10-11 06:31:59 -04:00
To use the libraries add the installation path into your implementations load path.
2024-10-06 12:18:52 -04:00
2024-10-11 06:33:11 -04:00
Example with Guile:
2024-10-06 12:18:52 -04:00
2024-10-11 03:04:18 -04:00
guix install snow-arvyy-mustache
guile --r7rs -L ${SNOW_LIBRARY_PATH}/usr/lib/snow
2024-10-06 12:18:52 -04:00
2024-10-11 06:33:11 -04:00
Example with Gauche:
guix install snow-arvyy-mustache
gosh -r7 -A ${SNOW_LIBRARY_PATH}/usr/lib/snow
2024-10-11 06:33:11 -04:00
Example with Sagittarius:
guix install snow-arvyy-mustache
sash -r7 -L ${SNOW_LIBRARY_PATH}/usr/lib/snow
2024-10-11 06:33:11 -04:00
2024-10-11 02:47:27 -04:00
## Installing SRFI libraries
SRFI libraries are not yet packaged into this channel. See related
[issue](https://gitea.scheme.org/Rinne/snow-fort-guix-channel/issues/2).