diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-07-03 00:05:16 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-07-03 00:30:55 +0200 |
commit | 4a6aeb670f74ef895878631bc3d832d08e1cb321 (patch) | |
tree | e6c2813bb9d13cb57c4d725614e255392e543a6b /guix/git-download.scm | |
parent | 322eeb87d0e5bb608ae1c176611a50297c93cbe8 (diff) | |
download | gnu-guix-4a6aeb670f74ef895878631bc3d832d08e1cb321.tar gnu-guix-4a6aeb670f74ef895878631bc3d832d08e1cb321.tar.gz |
derivations: Add #:substitutable?, distinguished from #:local-build?.
Fixes <http://bugs.gnu.org/18747>.
* guix/derivations.scm (substitutable-derivation?): Rewrite to check for
"allowSubstitutes".
(derivation): Add #:substitutable? parameter.
[user+system-env-vars]: Honor it.
(build-expression->derivation): Add #:substitutable? and honor it.
* guix/gexp.scm (gexp->derivation): Likewise.
* tests/derivations.scm ("derivation-prerequisites-to-build and substitutes,
non-substitutable build"): Use #:substitutable? instead of #:local-build?.
("substitutable-derivation?", "derivation-prerequisites-to-build and
substitutes, local build"): New tests.
* guix/download.scm (url-fetch): Adjust comment.
* guix/git-download.scm (git-fetch): Likewise.
* guix/build-system/gnu.scm (gnu-build, gnu-cross-build): Use #:substitutable?
instead of #:local-build?.
* doc/guix.texi (Derivations, G-Expressions): Adjust accordingly.
Diffstat (limited to 'guix/git-download.scm')
-rw-r--r-- | guix/git-download.scm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/guix/git-download.scm b/guix/git-download.scm index f4b48d7a6b..0f2218c13e 100644 --- a/guix/git-download.scm +++ b/guix/git-download.scm @@ -90,6 +90,7 @@ HASH-ALGO (a symbol). Use NAME as the file name, or a generic name if #f." (gexp->derivation (or name "git-checkout") build #:system system ;; FIXME: See <https://bugs.gnu.org/18747>. + ;; Uncomment when fixed daemons are widely deployed. ;;#:local-build? #t #:hash-algo hash-algo #:hash hash |