Re: How to use gexps in builds?

2019-05-15 Thread Ludovic Courtès
Hi,

It’s not possible yet to use gexps here, but there’s a
‘wip-build-systems-gexp’ branch that’s about making it possible.

When it becomes possible (hopefully soonish), you’ll write something
like:

  (build-system trivial-build-system)
  (arguments
   `(#:builder ,#~(begin …)))

HTH!

Ludo’.



How to use gexps in builds?

2019-05-08 Thread nly


...
(build-system trivial-build-system)
`(#:modules ((guix gexp))
 #:builder
 (gexp->derivation "gnumake"
   #~(begin
   (mkdir #$output)
   (chdir #$output)
   (symlink #$gnu-make #$output)))
 ))
...

The above form looks like it asks for too many (use-modules ...) (6 or
even more). What am I missing?