Use org-babel-tangle to generate a channel declaration

This commit is contained in:
TakeV 2024-11-11 17:48:08 -05:00
parent aea9234ee7
commit 939a2e1d23
Signed by: TakeV
GPG key ID: A64F41345C7400AF
2 changed files with 17 additions and 1 deletions

View file

@ -13,7 +13,7 @@ To set up automatic authentication, run the following:
If you are adding this channel to your guix channels, use the following definition:
#+begin_src scheme
#+begin_src scheme :tangle etc/generated/guix-punk-channel.scm
(channel
(name 'guix-punk)
(url "https://git.solarpunk.moe/Solarpunk/guix-punk.git")
@ -25,6 +25,8 @@ If you are adding this channel to your guix channels, use the following definiti
"1086 326D E207 068C 1C02 5129 A64F 4134 5C74 00AF"))))
#+end_src
A generated version of the definition can be found at [[file:etc/generated/guix-punk-channel.scm][etc/generated/guix-punk-channel.scm]]
* Committing
@ -102,3 +104,8 @@ If you are the one being talked to about getting added:
1) Add the new entity's key to the keyring branch, using the =NAME.key= pattern.
2) Add their signing key fingerprint to [[file:.guix-authorizations][.guix-authorizations]].
** the readme
Parts of this README use =org-babel-tangle= to automatically generate files as a matter of convienence. If you change any of the source code blocks, it is probably a good idea to run tangle, just in case.
Tangled files should go into the [[file:etc/generated][generated]] directory.

View file

@ -0,0 +1,9 @@
(channel
(name 'guix-punk)
(url "https://git.solarpunk.moe/Solarpunk/guix-punk.git")
(branch "main")
(introduction
(make-channel-introduction
"e5386665c5b75c317a9073cfb990b49706318fcf"
(openpgp-fingerprint
"1086 326D E207 068C 1C02 5129 A64F 4134 5C74 00AF"))))