aboutsummaryrefslogtreecommitdiff
path: root/build-aux/build-self.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-02-28 15:33:26 +0000
committerChristopher Baines <mail@cbaines.net>2023-02-28 15:33:26 +0000
commit2ed6bec7fea6547a5e9fedbbfb14f43f1874ae86 (patch)
tree0d7e059901bd8444514638a8d23217a1faebbcbd /build-aux/build-self.scm
parenta4c56f201de223c45fb1bb2847282f799dad4f12 (diff)
downloadguix-channel-graft-control.tar
guix-channel-graft-control.tar.gz
self: Apply grafts to the outputs of the guix derivation.channel-graft-control
Rather than having grafts apply to the derivation itself. This moves grafting here to work like grafting for packages, where you can think of the grafted outputs as a transformed variant of the ungrafted outputs. I'm looking at this as it'll allow the Guix Data Service to compute the derivations without grafts, and for these to be useful for substitutes regardless of whether users are using grafts. * guix/self.scm (compiled-guix, guix-derivation): Add a #:graft? keyword argument, to control grafting when computing the guix derivation. * build-aux/build-self.scm (build-program): Call guix-derivation with #:graft? (%graft?) to make the compute-guix-derivation script use or not use grafts as desired.
Diffstat (limited to 'build-aux/build-self.scm')
-rw-r--r--build-aux/build-self.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/build-aux/build-self.scm b/build-aux/build-self.scm
index 02822a2ee8..6d0037f20c 100644
--- a/build-aux/build-self.scm
+++ b/build-aux/build-self.scm
@@ -353,7 +353,9 @@ interface (FFI) of Guile.")
#:channel-metadata
'#$channel-metadata
#:pull-version
- #$pull-version)
+ #$pull-version
+ #:graft?
+ #$(%graft?))
#:system system))
derivation-file-name))))))
#:module-path (list source))))