megankde / scoop-clojure

Install Clojure on Windows with Scoop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scoop-clojure Build status

This is a new and convenient way to install Clojure on Windows.

  • WSL2 is not required
  • Administrator privileges are not required
  • High chance it works in corporate Windows systems

First install Scoop installer. Installation steps for scoop and additional information can be found here. Don't worry installation is easy.

Buy Me A Coffee

if you like this project.


Clojure

To install Clojure with Scoop you have to add two important buckets first:

# if you don't have git version control system installed
# it is required for adding new external buckets to your scoop installer
# you can skip this step otherwise
scoop install git

# add scoop bucket for Java
scoop bucket add java

# add scoop bucket for clojure build
scoop bucket add scoop-clojure https://github.com/littleli/scoop-clojure

Now we are ready to install Java and Clojure by issuing following commands:

# install Java runtime and compiler
scoop install adoptopenjdk-lts-hotspot

# install official clojure tools
scoop install clojure

# update to the newest version
scoop update clojure

After successfully running steps above, you should be able to run Clojure with following:

clj

To launch clojure from cmd.exe or tools like Emacs, you can use prepared shims:

cmd-clj
cmd-clojure

Other tools available in this bucket

  • babashka: A port of the clojure bash script to Clojure
  • bb-web: A babashka fork for small web-apps
  • bootleg: Simple template processing command line tool to help build static websites
  • carve: Carve will search through your code for unused vars and will remove them
  • clj-kondo: A linter for Clojure code that sparks joy
  • clojure-lsp: Language server for Clojure
  • deps.clj: A port of the clojure bash script to Clojure
  • grasp: (development preview) Grep Clojure code using clojure.spec regexes
  • jet: CLI to transform between JSON, EDN and Transit, powered with a minimal query language
  • joker: A small interpreted dialect of Clojure written in Go. It is also a Clojure(Script) linter
  • pgmig: Standalone PostgreSQL migration runner
  • puget: A CLI version of puget

Tools installation

Install extras

First add extras bucket to unlock required dependencies:

scoop bucket add extras

Tools

Now pick from the following tools:

scoop install babashka
scoop install bb-web
scoop install bootleg
scoop install carve
scoop install clj-kondo
scoop install clojure-lsp
scoop install deps.clj
scoop install grasp        # development preview
scoop install jet
scoop install joker
scoop install pgmig
scoop install puget

Updates

These tools are updated quite often, don't forget to update regularly with:

scoop update *

Scoop directory

This scoop bucket is also listed in Scoop directory where to check other useful buckets with tons of packaged software.

Contributor Code of Conduct

This project adheres to No Code of Conduct. We are all adults. I accept anyone's contributions. Nothing else matters.

For more information please visit the No Code of Conduct homepage.

About

Install Clojure on Windows with Scoop

License:MIT License


Languages

Language:PowerShell 100.0%