Re: How do I build a derivation with guix build?

2020-09-05 Thread Timothy Sample
Hi divoplade, As I understand it, ‘gexp->derivation’ returns a value in the store monad. I’m not sure why ‘guix build’ doesn’t know how to use it directly, but you can get at the derivation by wrapping it with ‘run-with-store’: (run-with-store (open-connection) (gexp->derivation

How do I build a derivation with guix build?

2020-09-05 Thread divoplade
Hello, I am still learning how to use gexps, and I thought that running this would work: guix build -f example.scm with example.scm containing: (use-modules (gnu packages base)) (use-modules (guix gexp)) (define build-exp #~(begin (mkdir #$output) (chdir #$output) (symlink