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 02:47:27 -04:00
|
|
|
## Installing/using 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 "-".
|
|
|
|
|
|
|
|
So for example to use package (arvyy mustache) run:
|
2024-10-11 01:40:12 -04:00
|
|
|
|
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-06 11:14:17 -04:00
|
|
|
|
2024-10-11 02:50:04 -04:00
|
|
|
And the library can be found from path:
|
|
|
|
|
2024-10-11 02:50:32 -04:00
|
|
|
${GUIX_PROFILE}/lib/snow
|
2024-10-06 12:18:52 -04:00
|
|
|
|
|
|
|
|
2024-10-11 02:47:27 -04:00
|
|
|
## Using the libraries
|
2024-10-06 12:18:52 -04:00
|
|
|
|
2024-10-11 02:47:27 -04:00
|
|
|
To use the libraries add the installation path into your implementations loadpath.
|
2024-10-06 12:18:52 -04:00
|
|
|
|
|
|
|
For example with Guile:
|
|
|
|
|
2024-10-11 02:47:27 -04:00
|
|
|
guile --r7rs -L ${GUIX_PROFILE}/lib/snow
|
2024-10-06 12:18:52 -04:00
|
|
|
|
2024-10-11 02:47:27 -04:00
|
|
|
## Installing SRFI libraries
|
2024-10-11 01:40:12 -04:00
|
|
|
|
|
|
|
SRFI libraries are not yet packaged into this channel. See related
|
|
|
|
[issue](https://gitea.scheme.org/Rinne/snow-fort-guix-channel/issues/2).
|
|
|
|
|
2024-10-06 12:18:52 -04:00
|
|
|
|
2024-10-06 11:14:17 -04:00
|
|
|
|
2024-10-06 09:33:19 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|