gexp: 'gexp->script' marks its result as non-offloadable and non-substitutable.

* guix/gexp.scm (gexp->script): Pass #:local-build? and #:substitutable?
to 'gexp->derivation'.
This commit is contained in:
Ludovic Courtès 2020-01-03 12:39:48 +01:00
parent 9512ba6b09
commit 52207b3938
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
;;; Copyright © 2018 Jan Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
@ -1602,7 +1602,12 @@ imported modules in its search path. Look up EXP's modules in MODULE-PATH."
(chmod port #o555))))
#:system system
#:target target
#:module-path module-path)))
#:module-path module-path
;; These derivations are not worth offloading or
;; substituting.
#:local-build? #t
#:substitutable? #f)))
(define* (gexp->file name exp #:key
(set-load-path? #t)