convert perl to nix

This commit is contained in:
Dan Vargas 2022-02-06 21:17:38 -07:00
parent 3530a79a57
commit 66af61c2cb
7 changed files with 30 additions and 29 deletions

View file

@ -1,19 +0,0 @@
#!/bin/bash
PREFIX=$(realpath $(dirname $0))
mkdir -p build
cd build
curl "https://www.cpan.org/src/5.0/perl-5.26.1.tar.gz" -o perl.tar.gz
tar xzf perl.tar.gz --strip-components=1
./Configure -des -Dprefix="$PREFIX"
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": "perl",
"version": "5.26.1",
"aliases": ["perl", "pl"]
}

View file

@ -1,3 +0,0 @@
#!/bin/bash
perl "$@"

View file

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