Danny Milosavljevic <dan...@scratchpost.org> skribis:

> Hi Ludo,
>
>> Yes.  At the REPL, you can do:
>> 
>>   ,use(guix)
>>   ,run-in-store (system-disk-image installation-os)
>
> I tried:
>
> ,use (gnu system vm)
> ,use (gnu system install)
> ,use (guix)
> ,run-in-store (system-disk-image installation-os)
> (derivation->output-path $3)
>
> and get
>
> $3 = #<derivation /gnu/store/wqba6wghk3j9jk1sxqb4a2lv730jpcmp-disk-image.drv 
> => /gnu/store/pjrkpnz4bgpiqgdix8ldz0psp53zr4kr-disk-image b0bbe60>
> $5 = "/gnu/store/pjrkpnz4bgpiqgdix8ldz0psp53zr4kr-disk-image"
>
> But /gnu/store/pjrkpnz4bgpiqgdix8ldz0psp53zr4kr-disk-image doesn't exist yet.
>
> What should I do to make guix build the image?

You should build the derivation, either from the REPL:

  ,run-in-store (built-derivations (list $3))

or from the shell:

  guix build /gnu/store/wqba6wghk3j9jk1sxqb4a2lv730jpcmp-disk-image.drv

HTH!

Ludo’.

Reply via email to