From 5fb163738caa16817040da55f09f8a03a95fbe58 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 22 Dec 2023 07:35:44 +0000 Subject: environment: Introduce record type for environment variables. * guix/forge/environment.scm: New file. * doc/forge.skb (Reference)[]: Document it. --- doc/forge.skb | 5 +++++ guix/forge/environment.scm | 31 +++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 guix/forge/environment.scm diff --git a/doc/forge.skb b/doc/forge.skb index b141bb6..fb9b0bd 100644 --- a/doc/forge.skb +++ b/doc/forge.skb @@ -500,6 +500,11 @@ gunicorn is run in])))))) (chapter :title [Reference] :ident "chapter-reference" (description + (record-documentation "guix/forge/environment.scm" ' + (record-field "name" + [Name of the environment variable]) + (record-field "value" + [Its value])) (record-documentation "guix/forge/forge.scm" ' (record-field "projects" [List of ,(record-ref "") objects describing diff --git a/guix/forge/environment.scm b/guix/forge/environment.scm new file mode 100644 index 0000000..d6adeae --- /dev/null +++ b/guix/forge/environment.scm @@ -0,0 +1,31 @@ +;;; guix-forge --- Guix software forge meta-service +;;; Copyright © 2023 Arun Isaac +;;; +;;; This file is part of guix-forge. +;;; +;;; guix-forge 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. +;;; +;;; guix-forge 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 guix-forge. If not, see +;;; . + +(define-module (forge environment) + #:use-module (guix records) + #:export ( + environment-variable + environment-variable-name + environment-variable-value)) + +(define-record-type* + environment-variable make-environment-variable + environment-variable? + (name environment-variable-name) + (value environment-variable-value)) -- cgit v1.2.3