spacemacs/layers/+distributions/spacemacs-docker/deps-install/installers/clojure/install.el

36 lines
1.3 KiB
EmacsLisp
Raw Normal View History

#!/usr/bin/emacs --script
;;; install.el --- clojure layer dependencies installation script
;;
2018-01-04 07:00:25 +00:00
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
;;
;; Author: Eugene "JAremko" Yaremenko <w3techplayground@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(load (expand-file-name "../../lib/deps-install-helpers.el"
(file-name-directory
load-file-name)) nil t)
(install default-jre-headless)
(with-installed (curl)
(! "Installing Leiningen...")
(cp ".lein" (dir $UHOME))
($ ["curl -Lo /usr/local/bin/lein"
"https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein"]
"chown ${UID}:${GID} -R ${UHOME}"
"chmod 755 /usr/local/bin/lein"
"su - ${UNAME} -c 'echo exit | lein repl'")
(! "Installing Boot...")
(cp ".boot" (dir $UHOME))
2017-12-31 16:04:09 +00:00
(set-glob-envs '("BOOT_CLOJURE_VERSION" . "1.9.0")
`("BOOT_LOCAL_REPO" . ,(concat (dir $UHOME) ".m2/repository")))
($ ["curl -Lo /usr/local/bin/boot"
"https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh"]
"chown ${UID}:${GID} -R ${UHOME}"
"chmod 755 /usr/local/bin/boot"
"su - ${UNAME} -c 'boot -u'"
"su - ${UNAME} -c boot"))