Created
April 25, 2015 03:20
-
-
Save anonymous/e8913bc4fc4839da6aeb to your computer and use it in GitHub Desktop.
build.scm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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