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. --- guix/forge/environment.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 guix/forge/environment.scm (limited to 'guix') 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