add gleam

This commit is contained in:
Lunarmagpie 2023-02-20 00:23:31 -05:00
parent cbc4db7ada
commit fe69427389
4 changed files with 25 additions and 0 deletions

13
packages/gleam/0.26.2/build.sh vendored Executable file
View File

@ -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

2
packages/gleam/0.26.2/environment vendored Normal file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
export PATH:=$PWD/gleam:PATH

5
packages/gleam/0.26.2/metadata.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"language": "gleam",
"version": "0.26.2",
"aliases": ["gleam"]
}

5
packages/gleam/0.26.2/run vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
gleam new project
cat $1 > project/project.gleam
cd project
gleam run