Advertisement
Guest User

Untitled

a guest
Jan 12th, 2021
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.47 KB | None | 0 0
  1. (use-modules (guix)
  2.          (guix gexp)
  3.          (guix store)
  4.          (guix monads)
  5.          (gnu packages base))
  6.  
  7. (define (aaaa)
  8.   (gexp->script "list-files"
  9.         #~(execl #$(file-append coreutils "/bin/ls")
  10.              "ls")))
  11.  
  12. (run-with-store (open-connection) (aaaa))
  13.  
  14. ;; prints message:
  15. $3 = #<derivation /gnu/store/s8h94vgpg6pslzxdn7rb9ydj7hi8bgwp-list-files.drv => /gnu/store/rn0izx34ycm3k3zfzaw5blwg9sz6kzi6-list-files 7f14ad7e7d70>
  16.  
  17. ;; derivation does ecists, but not the result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement