help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does a gexp relate to a derivation?


From: Ricardo Wurmus
Subject: Re: How does a gexp relate to a derivation?
Date: Sat, 17 Sep 2022 17:43:17 +0200
User-agent: mu4e 1.8.7; emacs 28.1

> How does a gexp relate to a derivation?

The module comment of (guix gexp) says this:

--8<---------------cut here---------------start------------->8---
;;; This module implements "G-expressions", or "gexps".  Gexps are like
;;; S-expressions (sexps), with two differences:
;;;
;;;   1. References (un-quotations) to derivations or packages in a gexp are
;;;      replaced by the corresponding output file name; in addition, the
;;;      'ungexp-native' unquote-like form allows code to explicitly refer to
;;;      the native code of a given package, in case of cross-compilation;
;;;
;;;   2. Gexps embed information about the derivations they refer to.
;;;
;;; Gexps make it easy to write to files Scheme code that refers to store
;;; items, or to write Scheme code to build derivations.
--8<---------------cut here---------------end--------------->8---



-- 
Ricardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]