Updating to elixir 1.12?

Sorry .. pacman -S elixir (after an upd) doesnt seem to know about the recent elixir 1.12 release.

Thoughts on why and then what I should do to get updated? (Prefer install vs source.)

Thanks!!

elixir-1.11.3-1

sudo pacman -S elixir
[sudo] Passwort fĂĽr sgs:    
Löse Abhängigkeiten auf...
Suche nach in Konflikt stehenden Paketen...

Pakete (2) erlang-nox-24.0-1  elixir-1.11.3-1

Gesamtgröße des Downloads:            43,07 MiB
Gesamtgröße der installierten Pakete:  103,40 MiB

:: Installation fortsetzen? [J/n] 

And welcome :slight_smile:


Compiling from source (Unix and MinGW)

You can download and compile Elixir in few steps. The first one is to install Erlang.

Next you should download source code (.zip, .tar.gz) of the latest release, unpack it and then run make inside the unpacked directory (note: if you are running on Windows, read this page on setting up your environment for compiling Elixir).

After compiling, you are ready to run the elixir and iex commands from the bin directory. It is recommended that you add Elixir’s bin path to your PATH environment variable to ease development.

In case you are feeling a bit more adventurous, you can also compile from master:

$ git clone https://github.com/elixir-lang/elixir.git
$ cd elixir
$ make clean test

If the tests pass, you are ready to go. Otherwise, feel free to open an issue in the issues tracker on GitHub.

3 Likes

It hasn’t been packaged yet.

Package has been flagged out-of-date, so wait until it has been packaged.

Until then, here’s a PKGBUILD:

# Maintainer: Johannes Löthberg
# Contributor: Sergej Pupykin
# Contributor: Gilbert Kennen 

pkgname=elixir
pkgver=1.12.0
pkgrel=0
pkgdesc="a functional meta-programming aware language built on top of the Erlang VM"
url="https://elixir-lang.org"
arch=('any')
license=('Apache' 'custom:EPL')
depends=('erlang-nox')
checkdepends=('git')
source=("$pkgname-$pkgver.tar.gz::https://github.com/elixir-lang/elixir/archive/v$pkgver.tar.gz")
sha256sums=('2fc896b5f7174708b9a643f1ff3d1718dcc5d2ee31f01b455c0570e8424a3c9a')

build() {
  cd elixir-"$pkgver"
  make
}

check() {
  cd elixir-"$pkgver"
  ERL_EPMD_PORT=5369 make test

  # The elixir test suite starts up epmd and then doesn't kill it again afterwards.
  epmd -port 5369 -kill
}

package() {
  cd elixir-"$pkgver"
  mkdir -p "$pkgdir"/usr/share/licenses/"$pkgname"
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"
  make DESTDIR="$pkgdir" PREFIX=/usr install
}
3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.