diff --git a/packages/gleam/0.26.2/build.sh b/packages/gleam/0.26.2/build.sh new file mode 100755 index 0000000..407be28 --- /dev/null +++ b/packages/gleam/0.26.2/build.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# Install Erlang +apt-get update +apt-get install wget -y +wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb +dpkg -i erlang-solutions_2.0_all.deb +apt-get install esl-erlang + +# Install Gleam +curl -L "https://github.com/gleam-lang/gleam/releases/download/v0.26.2/gleam-v0.26.2-x86_64-unknown-linux-musl.tar.gz" --output gleam.tar.gz +mkdir gleam +tar -xf gleam.tar.gz -C gleam diff --git a/packages/gleam/0.26.2/environment b/packages/gleam/0.26.2/environment new file mode 100644 index 0000000..f339d4b --- /dev/null +++ b/packages/gleam/0.26.2/environment @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +export PATH:=$PWD/gleam:PATH diff --git a/packages/gleam/0.26.2/metadata.json b/packages/gleam/0.26.2/metadata.json new file mode 100644 index 0000000..240508f --- /dev/null +++ b/packages/gleam/0.26.2/metadata.json @@ -0,0 +1,5 @@ +{ + "language": "gleam", + "version": "0.26.2", + "aliases": ["gleam"] +} diff --git a/packages/gleam/0.26.2/run b/packages/gleam/0.26.2/run new file mode 100644 index 0000000..7bef496 --- /dev/null +++ b/packages/gleam/0.26.2/run @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +gleam new project +cat $1 > project/project.gleam +cd project +gleam run