Skip to content

Instantly share code, notes, and snippets.

Created April 25, 2015 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e8913bc4fc4839da6aeb to your computer and use it in GitHub Desktop.
Save anonymous/e8913bc4fc4839da6aeb to your computer and use it in GitHub Desktop.
build.scm
(use-modules (guix profiles)
(guix derivations)
(guix monads)
(guix store)
(guix ui)
(srfi srfi-26))
(define %profile
(string-append "/var/guix/profiles/per-user/"
(getenv "USER") "/guix-profile"))
(let* ((store (open-connection))
(manifest (load "manifest.scm"))
(prof-drv (run-with-store store (profile-derivation manifest)))
(prof (derivation->output-path prof-drv)))
(show-what-to-build store (list prof-drv))
(build-derivations store (list prof-drv))
(switch-symlinks %profile prof))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment