[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/285: gexp: Add system and target support to gexp->file.
From: |
guix-commits |
Subject: |
05/285: gexp: Add system and target support to gexp->file. |
Date: |
Sun, 29 Dec 2019 20:43:49 -0500 (EST) |
kkebreau pushed a commit to branch wip-gnome3.34
in repository guix.
commit c3c9021a79e3fd69fde6e121a1e20abf1c6bcaa2
Author: Mathieu Othacehe <address@hidden>
Date: Sat Dec 14 17:52:53 2019 +0100
gexp: Add system and target support to gexp->file.
* guix/gexp.scm (gexp->file): Add system and target arguments and pass them
to
gexp->derivation and load-path-expression calls,
(scheme-file-compiler): adapt accordingly to pass system and target
arguments.
---
guix/gexp.scm | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/guix/gexp.scm b/guix/gexp.scm
index 411f084..1233105 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès
<address@hidden>
;;; Copyright © 2018 Clément Lassieur <address@hidden>
;;; Copyright © 2018 Jan Nieuwenhuizen <address@hidden>
+;;; Copyright © 2019 Mathieu Othacehe <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -456,7 +457,10 @@ This is the declarative counterpart of 'gexp->file'."
;; Compile FILE by returning a derivation that builds the file.
(match file
(($ <scheme-file> name gexp splice?)
- (gexp->file name gexp #:splice? splice?))))
+ (gexp->file name gexp
+ #:splice? splice?
+ #:system system
+ #:target target))))
;; Appending SUFFIX to BASE's output file name.
(define-record-type <file-append>
@@ -1603,7 +1607,9 @@ imported modules in its search path. Look up EXP's
modules in MODULE-PATH."
(define* (gexp->file name exp #:key
(set-load-path? #t)
(module-path %load-path)
- (splice? #f))
+ (splice? #f)
+ (system (%current-system))
+ target)
"Return a derivation that builds a file NAME containing EXP. When SPLICE?
is true, EXP is considered to be a list of expressions that will be spliced in
the resulting file.
@@ -1626,10 +1632,14 @@ Lookup EXP's modules in MODULE-PATH."
exp
(gexp ((ungexp exp)))))))))
#:local-build? #t
- #:substitutable? #f)
+ #:substitutable? #f
+ #:system system
+ #:target target)
(mlet %store-monad ((set-load-path
(load-path-expression modules module-path
- #:extensions extensions)))
+ #:extensions extensions
+ #:system system
+ #:target target)))
(gexp->derivation name
(gexp
(call-with-output-file (ungexp output)
@@ -1642,7 +1652,9 @@ Lookup EXP's modules in MODULE-PATH."
(gexp ((ungexp
exp)))))))))
#:module-path module-path
#:local-build? #t
- #:substitutable? #f))))
+ #:substitutable? #f
+ #:system system
+ #:target target))))
(define* (text-file* name #:rest text)
"Return as a monadic value a derivation that builds a text file containing
- branch wip-gnome3.34 updated (26ec7d6 -> 281bce1), guix-commits, 2019/12/29
- 05/285: gexp: Add system and target support to gexp->file.,
guix-commits <=
- 07/285: gnu: mumble: Actually modify qt-build-system., guix-commits, 2019/12/29
- 08/285: gnu: gspell: Build with gobject-introspection., guix-commits, 2019/12/29
- 11/285: gnu: cpupower: Fix library location., guix-commits, 2019/12/29
- 04/285: gnu: ktouch: Update to 19.08.3., guix-commits, 2019/12/29
- 06/285: gnu: git-annex: Update to 7.20191218., guix-commits, 2019/12/29
- 10/285: gnu: parallel: Update to 20191222., guix-commits, 2019/12/29
- 13/285: gnu: gnome-shell-extension-hide-app-icon: Fix installation., guix-commits, 2019/12/29
- 14/285: gnu: gnome-shell-extension-dash-to-dock: Depropagate glib:bin., guix-commits, 2019/12/29
- 15/285: gnu: gnome-shell-extensions: Depropagate glib:bin., guix-commits, 2019/12/29
- 12/285: gnu: guix-data-service: Update to 0.0.1-9.31110ac., guix-commits, 2019/12/29