Clojure: Difference between revisions
(leiningen is in community repository) |
m (→REPL: Add '':'' next to the command) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
[[ja:Clojure]] | [[ja:Clojure]] | ||
[[zh-hans:Clojure]] | [[zh-hans:Clojure]] | ||
[ | {{Merge|List of applications|Content does not justify dedicated article}} | ||
[https://clojure.org/ Clojure] is a dialect of Lisp and a dynamic, functional, general-purpose programming language that targets the [[Java]] Virtual Machine, the [https://clojure.org/about/clojureclr CLR] and [https://clojurescript.org/ JavaScript]. | |||
== Installation == | == Installation == | ||
[[Install]] the {{Pkg|clojure}} package, or {{AUR|clojure-git}} for the development version. | [[Install]] the {{Pkg|clojure}} package, or {{AUR|clojure-git}} for the development version. | ||
== REPL == | == REPL == | ||
To run the REPL, install [ | |||
To run the REPL, install [https://leiningen.org/ leiningen] from {{Pkg|leiningen}} package. Then in a terminal type: | |||
lein repl | lein repl | ||
=== m2 repo location === | |||
To change the location of the m2 repo add this to your profiles.clj: | |||
{:user {:local-repo #=(eval (str (System/getenv "XDG_CACHE_HOME") "/m2")) | |||
:repositories {"local" {:url #=(eval (str "file://" (System/getenv "XDG_DATA_HOME") "/m2")) | |||
:releases {:checksum :ignore}}} | |||
}} | |||
== See also == | == See also == | ||
* [[Wikipedia:Clojure]] | * [[Wikipedia:Clojure]] |
Latest revision as of 20:42, 4 February 2024
Clojure is a dialect of Lisp and a dynamic, functional, general-purpose programming language that targets the Java Virtual Machine, the CLR and JavaScript.
Installation
Install the clojure package, or clojure-gitAUR for the development version.
REPL
To run the REPL, install leiningen from leiningen package. Then in a terminal type:
lein repl
m2 repo location
To change the location of the m2 repo add this to your profiles.clj:
{:user {:local-repo #=(eval (str (System/getenv "XDG_CACHE_HOME") "/m2")) :repositories {"local" {:url #=(eval (str "file://" (System/getenv "XDG_DATA_HOME") "/m2")) :releases {:checksum :ignore}}} }}