migrate rscript to nix

This commit is contained in:
Dan Vargas 2022-02-06 18:38:30 -07:00
parent 2758f95228
commit a8c23ecd99
7 changed files with 60 additions and 25 deletions

View file

@ -1,16 +0,0 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir build
cd build
curl https://cloud.r-project.org/src/base/R-4/R-4.1.1.tar.gz -o R.tar.gz
tar xzf R.tar.gz --strip-components 1
./configure --prefix="$PREFIX" --with-x=no
make -j$(nproc)
make install -j$(nproc)
cd ../
rm -rf build

View file

@ -1 +0,0 @@
export PATH=$PWD/bin:$PATH

View file

@ -1,5 +0,0 @@
{
"language": "rscript",
"version": "4.1.1",
"aliases": ["r"]
}

View file

@ -1,2 +0,0 @@
#/bin/bash
Rscript "$@"

View file

@ -1 +0,0 @@
cat('OK')