Skip to content

Instantly share code, notes, and snippets.

@sbp
Last active December 31, 2015 06:59
Show Gist options
  • Save sbp/7951445 to your computer and use it in GitHub Desktop.
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"
(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