add piston nix pkg for brainfuck

This commit is contained in:
Dan Vargas 2022-03-18 10:11:16 -06:00
parent 16e4f08dfa
commit 96ffdb63dd
7 changed files with 56 additions and 36 deletions

View file

@ -1,22 +0,0 @@
#!/usr/bin/env bash
# Put instructions to build your package in here
PREFIX=$(realpath $(dirname $0))
git clone https://github.com/fabianishere/brainfuck.git
cd brainfuck
git checkout 06f84462e0a96487670a4b8024e3ec531e0377ee
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX/ -DENABLE_EDITLINE=OFF
make -j$(nproc)
make install -j$(nproc)
cd ../../
rm -rf brainfuck

View file

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

View file

@ -1,5 +0,0 @@
{
"language": "brainfuck",
"version": "2.7.3",
"aliases": ["bf"]
}

View file

@ -1,4 +0,0 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
fold -w1 | brainfuck $1

View file

@ -1 +0,0 @@
-[--->+<]>------.----.