From 939a2e1d2388729b68f4cc581c5180a0c1cc5525 Mon Sep 17 00:00:00 2001 From: TakeV Date: Mon, 11 Nov 2024 17:48:08 -0500 Subject: [PATCH] Use org-babel-tangle to generate a channel declaration --- README.org | 9 ++++++++- etc/generated/guix-punk-channel.scm | 9 +++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 etc/generated/guix-punk-channel.scm diff --git a/README.org b/README.org index ab84c23..3823255 100644 --- a/README.org +++ b/README.org @@ -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. diff --git a/etc/generated/guix-punk-channel.scm b/etc/generated/guix-punk-channel.scm new file mode 100644 index 0000000..890112c --- /dev/null +++ b/etc/generated/guix-punk-channel.scm @@ -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"))))