Import APT package installation

This commit is contained in:
Radon Rosborough 2021-01-02 11:08:14 -08:00
parent ec94a44030
commit d782cc1fb5
138 changed files with 612 additions and 2 deletions

View File

@ -3,6 +3,12 @@ aliases:
- "aplus"
name: "A+"
install:
apt:
- aplus-fsf
- aplus-fsf-doc
- rlwrap
repl: |
rlwrap a+
input: |

View File

@ -1,6 +1,10 @@
id: "abc"
name: "ABC"
install:
apt:
- libtinfo5:i386
repl: |
abc
input: |

View File

@ -26,6 +26,10 @@ info:
- oo
usage: popular
install:
apt:
- gnat
main: "main.adb"
template: |
with Ada.Text_IO;

View File

@ -5,6 +5,11 @@ aliases:
- "axi"
name: "Afnix"
install:
apt:
- afnix
- afnix-doc
repl: |
LD_LIBRARY_PATH=/usr/lib/afnix axi
input: |

View File

@ -26,6 +26,10 @@ info:
paradigm: imperative
usage: []
install:
apt:
- algol68g
main: "main.alg"
template: |
print(("Hello, world!",new line))

View File

@ -24,6 +24,10 @@ info:
- imperative
usage: []
install:
apt:
- libtinfo5
repl: |
apl
input: |

View File

@ -19,6 +19,11 @@ info:
paradigm: imperative
usage: []
install:
apt:
- gcc-arm-linux-gnueabihf
- qemu-user-static
main: "main.S"
template: |2
.text

View File

@ -20,6 +20,10 @@ info:
paradigm: []
usage: []
install:
apt:
- asciidoc
main: "main.adoc"
template: |
Hello, world!

View File

@ -3,6 +3,10 @@ aliases:
- "aspectcpp"
name: "AspectC++"
install:
apt:
- aspectc++
main: "main.cpp"
template: |
#include <iostream>

View File

@ -3,6 +3,10 @@ aliases:
- "aj"
name: "AspectJ"
install:
apt:
- aspectj
main: "Main.aj"
template: |
public class Main {

View File

@ -3,6 +3,10 @@ aliases:
- "asy"
name: "Asymptote"
install:
apt:
- asymptote
repl: |
asy

View File

@ -34,6 +34,10 @@ info:
- declarative
usage: []
install:
apt:
- ats2-lang
main: "main.dats"
template: |
val _ = print ("Hello, world!\n")

View File

@ -22,6 +22,10 @@ info:
paradigm: imperative
usage: []
install:
apt:
- mawk
main: "main.awk"
template: |
BEGIN { print "Hello, world!" }

View File

@ -24,6 +24,10 @@ info:
paradigm: imperative
usage: []
install:
apt:
- bash
repl: |
bash --rcfile /dev/null
input: |

View File

@ -24,6 +24,10 @@ info:
paradigm: imperative
usage: []
install:
apt:
- bwbasic
repl: |
bwbasic
input: |

View File

@ -18,6 +18,13 @@ info:
paradigm: imperative
usage: personal
install:
build:
apt:
- golang
apt:
- yasm
main: "main.bts"
template: |
const message = "Hello, world!

View File

@ -1,6 +1,10 @@
id: "bc"
name: "bc"
install:
apt:
- bc
repl: |
bc

View File

@ -3,6 +3,10 @@ aliases:
- "bsh"
name: "Beanshell"
install:
apt:
- bsh
repl: |
CLASSPATH=/usr/share/java/jline.jar:/usr/share/java/bsh.jar java -Duser.home="$PWD" jline.ConsoleRunner bsh.Interpreter
input: |

View File

@ -24,6 +24,10 @@ info:
paradigm: turing
usage: []
install:
apt:
- beef
repl: |
brainf-repl
input: |

View File

@ -52,6 +52,12 @@ info:
- oo
usage: popular
install:
apt:
- clang
- clang-format
- clangd
main: "main.cpp"
template: |
#include <iostream>

View File

@ -30,6 +30,12 @@ info:
paradigm: imperative
usage: popular
install:
apt:
- clang
- clang-format
- clangd
main: "main.c"
template: |
#include <stdio.h>

View File

@ -19,6 +19,11 @@ info:
- oo
usage: []
install:
apt:
- $(grep-aptavail -F Package ceylon -s Package -n | sort -rV | head -n1)
- openjdk-8-jdk-headless
main: "source/main.ceylon"
template: |
shared void run() {

View File

@ -5,6 +5,10 @@ aliases:
- "ilasm"
name: "CIL"
install:
apt:
- mono-devel
main: "main.il"
template: |
.assembly main {}

View File

@ -30,6 +30,10 @@ info:
- oo
usage: []
install:
apt:
- clojure
repl: |
clojure
input: |

View File

@ -3,6 +3,10 @@ aliases:
- "cmakelists"
name: "CMake"
install:
apt:
- cmake
main: "main.cmake"
template: |
message("Hello, world!")

View File

@ -22,6 +22,11 @@ info:
paradigm: imperative
usage: []
install:
apt:
- wine
- wine32
setup: |
shopt -s dotglob; cp -R /opt/cmd/home-template/* ./

View File

@ -29,6 +29,10 @@ info:
- oo
usage: popular
install:
apt:
- gnucobol
main: "main.cbl"
template: |
IDENTIFICATION DIVISION.

View File

@ -37,6 +37,11 @@ info:
- oo
usage: []
install:
apt:
- sbcl
- rlwrap
repl: |
rlwrap sbcl
input: |

View File

@ -19,6 +19,10 @@ info:
paradigm: oo
usage: []
install:
apt:
- crystal
main: "main.cr"
template: |
puts "Hello, world!"

View File

@ -5,6 +5,11 @@ aliases:
name: "C#"
monacoLang: csharp
install:
apt:
- mono-mcs
- clang-format
main: "main.cs"
template: |
class main {

View File

@ -4,6 +4,10 @@ aliases:
- "pakcs"
name: "Curry"
install:
apt:
- pakcs
repl: |
pakcs

View File

@ -3,6 +3,11 @@ aliases:
- "dfy"
name: "Dafny"
install:
apt:
- dafny
- mono-runtime
main: "main.dfy"
template: |
method Main() {

View File

@ -2,6 +2,10 @@ id: "dart"
name: "Dart"
monacoLang: dart
install:
apt:
- dart
main: "main.dart"
template: |
void main() {

View File

@ -1,6 +1,10 @@
id: "dc"
name: "dc"
install:
apt:
- dc
repl: |
echo 'Reading from stdin...' >&2; dc
input: |

View File

@ -1,6 +1,10 @@
id: "dhall"
name: "Dhall"
install:
apt:
- dhall
main: "main.dhall"
template: |
{ output = "Hello, world!" }

View File

@ -3,6 +3,10 @@ aliases:
- "opendylan"
name: "Dylan"
install:
apt:
- libunwind-dev
setup: |
cp -R /opt/dylan/project-template/* ./

View File

@ -6,6 +6,10 @@ aliases:
- "ecc"
name: "eC"
install:
apt:
- ecere-dev
main: "main.ec"
template: |
class Main : Application

View File

@ -4,6 +4,10 @@ aliases:
- "exs"
name: "Elixir"
install:
apt:
- elixir
repl: |
iex
input: |

View File

@ -3,6 +3,10 @@ aliases:
- "elv"
name: "Elvish"
install:
apt:
- elvish
repl: |
SHELL=/usr/bin/elvish HOME="$PWD" elvish
input: |

View File

@ -7,6 +7,10 @@ aliases:
- "ielm"
name: "Emacs Lisp"
install:
apt:
- emacs-nox
repl: |
emacs --eval "(progn (require 'package) (push '("melpa" . "https://melpa.org/packages/") package-archives) (package-initialize) (ielm))"
input: |
@ -25,10 +29,10 @@ scope:
pkg:
install: |
emacs -Q --batch --eval "(progn (require 'package) (push '("melpa" . "https://melpa.org/packages/") package-archives) (package-initialize) (unless (ignore-errors (>= (length (directory-files "~/.emacs.d/elpa/archives")) 4)) (package-refresh-contents)) (package-install 'NAME))"
emacs -Q --batch --eval "(progn (require 'package) (push '(\"melpa\" . \"https://melpa.org/packages/\") package-archives) (package-initialize) (unless (ignore-errors (>= (length (directory-files \"~/.emacs.d/elpa/archives\")) 4)) (package-refresh-contents)) (package-install 'NAME))"
uninstall: |
ls ~/.emacs.d/elpa | grep -- - | grep '^NAME-[0-9]' | while read pkg; do emacs -Q --batch --eval "(progn (require 'package) (push '("melpa" . "https://melpa.org/packages/") package-archives) (package-initialize) (unless (ignore-errors (>= (length (directory-files "~/.emacs.d/elpa/archives")) 4)) (package-refresh-contents)) (call-interactively 'package-delete))" <<< "$pkg"; done
ls ~/.emacs.d/elpa | grep -- - | grep '^NAME-[0-9]' | while read pkg; do emacs -Q --batch --eval "(progn (require 'package) (push '(\"melpa" . "https://melpa.org/packages/\") package-archives) (package-initialize) (unless (ignore-errors (>= (length (directory-files \"~/.emacs.d/elpa/archives\")) 4)) (package-refresh-contents)) (call-interactively 'package-delete))" <<< "$pkg"; done
all: |
set -o pipefail; (curl -sS https://elpa.gnu.org/packages/ | grep '<td>' | grep -Eo '[^>]+</a>' | grep -Eo '^[^<]+' && curl -sS https://melpa.org/archive.json | jq -r 'keys | .[]') | sort | uniq

View File

@ -3,6 +3,12 @@ aliases:
- "erl"
name: "Erlang"
install:
apt:
- erlang
- libodbc1 # workaround bug in APT
- rebar
repl: |
erl
input: |

View File

@ -1,6 +1,10 @@
id: "fish"
name: "Fish"
install:
apt:
- fish
repl: |
SHELL=/usr/bin/fish fish
input: |

View File

@ -3,6 +3,11 @@ aliases:
- "lex"
name: "Flex"
install:
apt:
- flex
- flex-doc
main: "main.lex"
template: |
%{

View File

@ -3,6 +3,10 @@ aliases:
- "gforth"
name: "Forth"
install:
apt:
- gforth
repl: |
gforth
input: |

View File

@ -9,6 +9,10 @@ aliases:
- "fortran2008"
name: "FORTRAN"
install:
apt:
- flang
main: "main.f"
template: |2
program hello

View File

@ -6,6 +6,10 @@ aliases:
name: "F#"
monacoLang: fsharp
install:
apt:
- fsharp
repl: |
fsharpi
input: |

View File

@ -4,6 +4,10 @@ aliases:
- "gbs"
name: "Gambas"
install:
apt:
- gambas3-script
main: "main.gbs"
template: |
Print "Hello, world!"

View File

@ -1,6 +1,10 @@
id: "gap"
name: "GAP"
install:
apt:
- gap
repl: |
gap
input: |

View File

@ -1,6 +1,10 @@
id: "gdb"
name: "GDB"
install:
apt:
- gdb
repl: |
gdb
input: |

View File

@ -3,6 +3,10 @@ aliases:
- "genius"
name: "GEL"
install:
apt:
- genius
repl: |
genius

View File

@ -1,6 +1,10 @@
id: "gnuplot"
name: "Gnuplot"
install:
apt:
- gnuplot
repl: |
gnuplot
input: |

View File

@ -4,6 +4,10 @@ aliases:
name: "Go"
monacoLang: go
install:
apt:
- golang
main: "main.go"
template: |
package main

View File

@ -1,6 +1,10 @@
id: "groovy"
name: "Groovy"
install:
apt:
- groovy
repl: |
JAVA_OPTS="-Djava.util.prefs.systemRoot=$PWD/.java -Djava.util.prefs.userRoot=$PWD/.java/.userPrefs" groovysh

View File

@ -3,6 +3,10 @@ aliases:
- "hhvm"
name: "Hack"
install:
apt:
- hhvm
repl: |
hhvm -a
input: |

View File

@ -5,6 +5,13 @@ aliases:
- "hs"
name: "Haskell"
install:
build:
apt:
- cabal-install
apt:
- ghc
repl: |
rm -f .ghci && ghci

View File

@ -3,6 +3,10 @@ aliases:
- "hx"
name: "Haxe"
install:
apt:
- haxe
main: "Main.hx"
template: |
class Main {

View File

@ -5,6 +5,10 @@ aliases:
- "iconx"
name: "Icon"
install:
apt:
- icont
main: "main.icn"
template: |
procedure main ()

View File

@ -4,6 +4,12 @@ aliases:
- "idris2"
name: "Idris"
install:
build:
apt:
- chezscheme
- gcc
repl: |
rm -f .idris/repl/init; idris2

View File

@ -4,6 +4,10 @@ aliases:
- "ick"
name: "INTERCAL"
install:
apt:
- intercal
main: "main.i"
template: |
DO ,1 <- #14

View File

@ -1,6 +1,10 @@
id: "jasmin"
name: "Jasmin"
install:
apt:
- jasmin-sable
main: "Main.j"
template: |
.class public Main

View File

@ -4,6 +4,11 @@ aliases:
name: "Java"
monacoLang: java
install:
apt:
- default-jdk
- clang-format
main: "Main.java"
template: |
public class Main {

View File

@ -10,6 +10,11 @@ aliases:
name: "JavaScript"
monacoLang: javascript
install:
apt:
- nodejs
- yarn
repl: |
node

View File

@ -1,6 +1,10 @@
id: "jq"
name: "jq"
install:
apt:
- jq
repl: |
echo 'Reading from stdin...' >&2 && while true; do jq .; done
input: |

View File

@ -3,6 +3,10 @@ aliases:
- "jl"
name: "Julia"
install:
apt:
- julia
repl: |
julia

View File

@ -4,6 +4,10 @@ aliases:
name: "Ksh"
monacoLang: shell
install:
apt:
- ksh
repl: |
SHELL=/usr/bin/ksh HOME="$PWD" ksh
input: |

View File

@ -4,6 +4,15 @@ aliases:
- "b"
name: "Limbo"
install:
build:
apt:
- gcc
- libc6-dev:i386
- libx11-dev:i386
- libxext-dev:i386
- linux-libc-dev:i386
setup: |
ln -s /usr/local/inferno/* ./

View File

@ -1,6 +1,10 @@
id: "lisaac"
name: "Lisaac"
install:
apt:
- lisaac
main: "main.li"
template: |
Section Header

View File

@ -2,6 +2,10 @@ id: "llvm"
name: "LLVM"
monacoLang: shell
install:
apt:
- llvm
main: "main.ll"
template: |
@.str = private unnamed_addr constant [13 x i8] c"Hello, world!"

View File

@ -4,6 +4,11 @@ aliases:
- "lci"
name: "LOLCODE"
install:
build:
apt:
- cmake
main: "main.lol"
template: |
HAI 1.2

View File

@ -2,6 +2,10 @@ id: "lua"
name: "Lua"
monacoLang: lua
install:
apt:
- $(grep-aptavail -XF Provides lua -a -XF Version "$(grep-aptavail -XF Provides lua -s Version -n | sort -Vr | head -n1)" -s Package -n | head -n1)
repl: |
lua

View File

@ -1,6 +1,10 @@
id: "m4"
name: "m4"
install:
apt:
- m4
repl: |
echo 'Reading from stdin...' >&2; m4
input: |

View File

@ -3,6 +3,10 @@ aliases:
- "maria"
name: "MariaDB"
install:
apt:
- libtinfo5
repl: |
rm -rf data && /opt/mariadb/scripts/mariadb-install-db --user="$(id -un)" && (/opt/mariadb/bin/mysqld --datadir="$PWD/data" --socket="$PWD/socket" --skip-networking &) && until [[ -e socket ]]; do sleep 0.01; done && mysql --socket="$PWD/socket"
input: |

View File

@ -3,6 +3,10 @@ aliases:
- "mzn"
name: "MiniZinc"
install:
apt:
- minizinc
main: "main.mzn"
template: |
solve satisfy;

View File

@ -4,6 +4,11 @@ aliases:
name: "MIPS"
monacoLang: mips
install:
apt:
- gcc-mips64-linux-gnuabi64
- qemu-user-static
main: "main.S"
template: |2
.text

View File

@ -4,6 +4,10 @@ aliases:
- "mongod"
name: "MongoDB"
install:
apt:
- mongodb
repl: |
while ps -u "$(id -un)" -o comm | grep -q mongod; do sleep 0.01; done && rm -rf data && mkdir data && (mongod --dbpath=data --unixSocketPrefix="$PWD" --bind_ip=, &) && until mongo --host "$PWD/mongodb-27017.sock" --eval ' ' &>/dev/null; do sleep 0.01; done && mongo --host "$PWD/mongodb-27017.sock"

View File

@ -5,6 +5,10 @@ aliases:
- "fisgtm"
name: "MUMPS"
install:
apt:
- fis-gtm
main: "main.m"
template: |
main()

View File

@ -3,6 +3,10 @@ aliases:
- "my"
name: "MySQL"
install:
apt:
- mysql-server
repl: |
rm -rf data && mysqld -h "$PWD/data" --initialize-insecure && (mysqld -h "$PWD/data" --socket="$PWD/socket" --pid-file="$PWD/pid-file" --mysqlx=OFF --skip-networking &) && until [[ -e socket ]]; do sleep 0.01; done && mysql --socket="$PWD/socket" -u root
input: |

View File

@ -3,6 +3,10 @@ aliases:
- "nekoc"
name: "Neko"
install:
apt:
- neko
main: "main.neko"
template: |
$print("Hello, world!\n");

View File

@ -1,6 +1,10 @@
id: "nickle"
name: "Nickle"
install:
apt:
- nickle
repl: |
nickle

View File

@ -1,6 +1,10 @@
id: "nim"
name: "Nim"
install:
apt:
- nim
main: "main.nim"
template: |
echo "Hello, world!"

View File

@ -3,6 +3,11 @@ aliases:
- "obn"
name: "Oberon"
install:
build:
apt:
- clang
main: "Main.obn"
template: |
MODULE Main;

View File

@ -5,6 +5,12 @@ aliases:
- "objectivecpp"
name: "Objective-C++"
install:
apt:
- gcc
- gnustep-devel
- gobjc++
main: "main.mm"
template: |
#import <Foundation/Foundation.h>

View File

@ -5,6 +5,11 @@ aliases:
name: "Objective-C"
monacoLang: objective-c
install:
apt:
- gcc
- gnustep-devel
main: "main.m"
template: |
#import <Foundation/Foundation.h>

View File

@ -1,6 +1,13 @@
id: "ocaml"
name: "OCaml"
install:
build:
apt:
- opam
apt:
- ocaml
repl: |
ocaml
input: |

View File

@ -5,6 +5,10 @@ aliases:
- "mathworks"
name: "Octave"
install:
apt:
- octave
repl: |
octave

View File

@ -1,6 +1,11 @@
id: "ook"
name: "Ook"
install:
build:
apt:
- autoconf
main: "main.ook"
template: |
Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.

View File

@ -1,6 +1,10 @@
id: "openscad"
name: "OpenSCAD"
install:
apt:
- openscad
main: "main.scad"
template: |
echo("Hello, world!");

View File

@ -3,6 +3,10 @@ aliases:
- "gp"
name: "PARI/GP"
install:
apt:
- pari-gp
repl: |
gp

View File

@ -4,6 +4,10 @@ aliases:
- "p"
name: "Parser3"
install:
apt:
- parser3-cgi
main: "main.p"
template: |
$console:line[Hello, world!]

View File

@ -5,6 +5,10 @@ aliases:
name: "Pascal"
monacoLang: pascal
install:
apt:
- fpc
main: "main.pas"
template: |
program Main;

View File

@ -5,6 +5,10 @@ aliases:
name: "Perl"
monacoLang: perl
install:
apt:
- perl
repl: |
re.pl

View File

@ -4,6 +4,10 @@ aliases:
name: "PHP"
monacoLang: php
install:
apt:
- php
repl: |
php -a
input: |

View File

@ -1,6 +1,11 @@
id: "pike"
name: "Pike"
install:
apt:
- $(grep-aptavail -eF Package "^pike[0-9.]+$" -s Package -n | sort -Vr | head -n1)
- $(grep-aptavail -eF Package "^pike[0-9.]+$" -s Package -n | sort -Vr | head -n1)-doc
repl: |
pike
input: |

View File

@ -7,6 +7,11 @@ aliases:
name: "PostgreSQL"
monacoLang: pgsql
install:
apt:
- postgresql
- postgresql-client
repl: |
rm -rf data && /usr/lib/postgresql/*/bin/initdb -D data && (echo "listen_addresses = ''" && echo "unix_socket_directories = '.'") >> data/postgresql.conf && /usr/lib/postgresql/*/bin/pg_ctl -D data -w start && psql -h "$PWD/data" postgres
input: |

View File

@ -5,6 +5,11 @@ aliases:
- "ghostscript"
name: "PostScript"
install:
apt:
- ghostscript
- rlwrap
repl: |
rlwrap gs
input: |

View File

@ -1,6 +1,10 @@
id: "prolog"
name: "Prolog"
install:
apt:
- swi-prolog
repl: |
prolog
input: |

View File

@ -4,6 +4,10 @@ aliases:
- "pml"
name: "PROMELA"
install:
apt:
- spin
main: "main.pml"
template: |
active proctype main() {

View File

@ -4,6 +4,10 @@ aliases:
- "pure"
name: "PureScript"
install:
apt:
- libtinfo5
setup: |
shopt -s dotglob; cp -R /opt/purescript/project-template/* "$PWD/"

View File

@ -4,6 +4,10 @@ aliases:
- "qs"
name: "Q#"
install:
apt:
- $(grep-aptavail -eF Package "^dotnet-sdk-[0-9.]+$" -s Package -n | sort -Vr | head -n1)
setup: |
cp -R /opt/qsharp/dotnet ./.dotnet && cp -R /opt/qsharp/project-template/* ./

View File

@ -4,6 +4,10 @@ aliases:
name: "R"
monacoLang: r
install:
apt:
- r-base
repl: |
R

Some files were not shown because too many files have changed in this diff Show More