Last active
December 31, 2015 06:59
-
-
Save sbp/7951445 to your computer and use it in GitHub Desktop.
A very simple "guix install" implementation, by Mark H. Weaver. "Just stick it in $DIR/guix/scripts/install.scm, where $DIR is in your guile load path"
This file contains hidden or 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
(define-module (guix scripts install) | |
#:use-module (guix scripts package) | |
#:use-module (srfi srfi-1) | |
#:export (guix-install)) | |
(define (guix-install . args) | |
(apply guix-package | |
(fold-right (lambda (arg seed) | |
(if (string-prefix? "-" arg) | |
(cons arg seed) | |
(cons* "-i" arg seed))) | |
'() | |
args))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment