Compare commits

..

14 Commits

Author SHA1 Message Date
Thomas 75f5d65fc1
Merge pull request #175 from ethancedwards8/fix-nix-syntax
Fix syntax error in shell.nix
2021-03-19 13:38:55 +13:00
Thomas 9c485595d9
Merge pull request #176 from dvargas46/v3-add-emacs
pkg(emacs-27.1.0): Add emacs 27.1.0
2021-03-19 13:38:42 +13:00
Thomas c99c3ea6ec
Merge pull request #174 from dvargas46/v3-add-swift
pkg(swift-5.3.3): Add swift 5.3.3
2021-03-19 13:38:32 +13:00
Thomas 70c315e29a
Merge pull request #173 from dvargas46/v3-add-zig
pkg(zig-0.7.1): Add zig 0.7.1
2021-03-19 13:38:20 +13:00
Thomas a7a79dbb30
Merge pull request #167 from Shivansh-007/package/lolcode-0.11.2
pkg(lolcode-0.11.2): Add lolcode 0.11.2
2021-03-19 13:38:08 +13:00
Dan Vargas e57ef95e02 pkg(emacs-27.1.0): Add emacs 27.1.0 2021-03-18 19:28:35 -05:00
Ethan Edwards a024c9193d
Fix syntax error in shell.nix 2021-03-18 19:45:46 -04:00
Shivansh-007 412e1ec7ee
pkg(lolcode-0.11.2): The binary is "lci" not "lolcode”. 2021-03-19 04:05:43 +05:30
Shivansh-007 228880ba9b
pkg(lolcode-0.11.2): Shift to cmake/make rather then running install.py 2021-03-19 03:55:25 +05:30
Vargas, Dan fb95a4dbc0 pkg(zig-0.7.1): Add zig 0.7.1 2021-03-18 17:06:27 -05:00
Thomas 5f39d11f87
Merge pull request #172 from dvargas46/v3-add-swift
pkg(swift-5.3.3): Add deps for swift
2021-03-19 10:55:22 +13:00
Vargas, Dan 0d1906e1b6 pkg(swift-5.3.3): Add swift 5.3.3 2021-03-18 15:34:25 -05:00
Vargas, Dan aa0a7ac35f pkg(swift-5.3.3): Add deps for swift 2021-03-18 15:08:51 -05:00
Shivansh-007 7744eea459 pkg(lolcode-0.11.2): Add lolcode 0.11.2 2021-03-18 12:48:28 +05:30
23 changed files with 130 additions and 3 deletions

View File

@ -5,7 +5,7 @@ RUN for i in $(seq 1001 1500); do \
useradd -M runner$i -g $i -u $i ; \ useradd -M runner$i -g $i -u $i ; \
done done
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y libxml2 gnupg tar coreutils util-linux libc6-dev binutils build-essential locales libpcre3-dev libevent-dev libgmp3-dev libncurses6 && \ apt-get install -y libxml2 gnupg tar coreutils util-linux libc6-dev binutils build-essential locales libpcre3-dev libevent-dev libgmp3-dev libncurses6 libncurses5 libedit-dev && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen

24
packages/emacs/27.1.0/build.sh vendored Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
export PATH=$PWD/bin:$PATH
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
# Emacs version 27.1 supports Docker builds
# Otherwise, older versions will work too, but you will have to disable `/proc/sys/kernel/randomize_va_space` which is less secure
curl -L "http://ftpmirror.gnu.org/emacs/emacs-27.1.tar.gz" -o emacs.tar.gz
tar xzf emacs.tar.gz --strip-components=1
rm emacs.tar.gz
# Building without all that X11 stuff
./configure --prefix="$PREFIX" --with-x=no --with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no --with-gnutls=no
make -j$(nproc)
make install -j$(nproc)
cd ..
rm -rf build

4
packages/emacs/27.1.0/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/emacs/27.1.0/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "emacs",
"version": "27.1.0",
"author": "Dan Vargas <danvargas46@gmail.com>",
"aliases": ["emacs", "el", "elisp"]
}

4
packages/emacs/27.1.0/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
# Put instructions to run the runtime
emacs -Q --script "$@"

1
packages/emacs/27.1.0/test.el vendored Normal file
View File

@ -0,0 +1 @@
(princ "OK")

15
packages/lolcode/0.11.2/build.sh vendored Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
PREFIX=$(realpath $(dirname $0))
# Cloning lolcode source
git clone https://github.com/justinmeza/lci.git lolcode
cd lolcode
# Building and installing lolcode
cmake -DCMAKE_INSTALL_PREFIX:STRING="$PREFIX" .
make -j$(nproc)
make install -j$(nproc)
# Cleaning up
cd ../ && rm -rf lolcode

4
packages/lolcode/0.11.2/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/lolcode/0.11.2/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "lolcode",
"version": "0.11.2",
"author": "Shivansh-007 <Shivansh-007@users.noreply.github.com>",
"aliases": ["lol", "lci"]
}

4
packages/lolcode/0.11.2/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
lci "$@"

4
packages/lolcode/0.11.2/test.lol vendored Normal file
View File

@ -0,0 +1,4 @@
HAI 1.2
CAN HAS STDIO?
VISIBLE "OK"
KTHXBYE

6
packages/swift/5.3.3/build.sh vendored Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Binary install
curl -L "https://swift.org/builds/swift-5.3.3-release/ubuntu1804/swift-5.3.3-RELEASE/swift-5.3.3-RELEASE-ubuntu18.04.tar.gz" -o swift.tar.gz
tar xzf swift.tar.gz --strip-components=2
rm swift.tar.gz

4
packages/swift/5.3.3/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/swift/5.3.3/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "swift",
"version": "5.3.3",
"aliases": ["swift"],
"author": "Dan Vargas <danvargas46@gmail.com>"
}

4
packages/swift/5.3.3/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Setting clang cache to current dir to avoid permission error on /tmp
swift -module-cache-path . "$@"

1
packages/swift/5.3.3/test.swift vendored Normal file
View File

@ -0,0 +1 @@
print("OK")

10
packages/zig/0.7.1/build.sh vendored Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
mkdir -p bin
cd bin/
curl -L "https://ziglang.org/download/0.7.1/zig-linux-x86_64-0.7.1.tar.xz" -o zig.tar.xz
tar xf zig.tar.xz --strip-components=1
rm zig.tar.xz
cd ../

4
packages/zig/0.7.1/compile vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# optimizing for small programs
zig build-exe -O ReleaseSmall --color off --cache-dir . --global-cache-dir . --name out "$@"

4
packages/zig/0.7.1/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# compiler path
export PATH=$PWD/bin:$PATH

6
packages/zig/0.7.1/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "zig",
"version": "0.7.1",
"aliases": ["zig"],
"author": "Dan Vargas <danvargas46@gmail.com>"
}

4
packages/zig/0.7.1/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
shift # Filename is only used in compile step, so we can take it out here
./out "$@"

6
packages/zig/0.7.1/test.zig vendored Normal file
View File

@ -0,0 +1,6 @@
const std = @import("std");
pub fn main() !void {
const stdout = std.io.getStdOut().writer();
try stdout.print("OK\n", .{});
}

View File

@ -1,5 +1,5 @@
{ pkgs ? import <nixpkgs> {} }: { pkgs ? import <nixpkgs> {} }:
pkgs.mkShell { pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run # nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = [ pkgs.nodejs-15_x pkgs.yarn pkgs.jq ]; nativeBuildInputs = with pkgs; [ nodejs-15_x yarn jq ];
} }