diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-04-20 23:37:05 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-04-21 00:06:40 +0200 |
commit | c8d8f6160e7b4d3df7b006b35ba0f4e74b9b90fb (patch) | |
tree | 110684b2abc323d5cd14071128d861c44eb08a53 /guix | |
parent | 71977a6c59460e029c91741c8b11f3a544a70486 (diff) | |
download | patches-c8d8f6160e7b4d3df7b006b35ba0f4e74b9b90fb.tar patches-c8d8f6160e7b4d3df7b006b35ba0f4e74b9b90fb.tar.gz |
packages: Recommend against the use of 'package-file'.
* guix/packages.scm (package-file): Recommend against its use in the
docstring.
* doc/guix.texi (The Store Monad): Likewise.
Diffstat (limited to 'guix')
-rw-r--r-- | guix/packages.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/guix/packages.scm b/guix/packages.scm index 6c6a06e0ce..2fa4fd05d7 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -1340,7 +1340,11 @@ code of derivations to GUILE, a package object." "Return as a monadic value the absolute file name of FILE within the OUTPUT directory of PACKAGE. When FILE is omitted, return the name of the OUTPUT directory of PACKAGE. When TARGET is true, use it as a -cross-compilation target triplet." +cross-compilation target triplet. + +Note that this procedure does _not_ build PACKAGE. Thus, the result might or +might not designate an existing file. We recommend not using this procedure +unless you know what you are doing." (lambda (store) (define compute-derivation (if target |