This repo contains a flake that provides an easy way to include language and their dependencies (for example in a nix shell environment).
nix shell <PATH>#<LANGUAGE>[.<PKG1>.<PKG2> ...]
PATHis the path of this repo (usegithub:tomberek/-) if you didn't clone it.LANGUAGEis the name of the language (see Supported Languages)PKGSare the package names (separated by.) that will be included with the language
Start a shell environment with python and the packages scipy, matplotlib, and numpy:
nix shell github:tomberek/-#python3With.scipy.matplotlib.numpyStart a shell environment with perl and the packages HTMLTokeParserSimple and LWP:
nix shell github:tomberek/-#perlWith.HTMLTokeParserSimple.LWP#! /usr/bin/env nix
#! nix shell <PATH>#<LANGUAGE>[.<PKG1>.<PKG2> ...] --command <LANG_EXE>
PATHis the path of this repo (usegithub:tomberek/-) if you didn't clone it.LANGUAGEis the name of the language (see Supported Languages)PKGSare the package names (separated by.) that will be included with the languageLANG_EXEis the name of the executable of the language (ex: for python,LANG_EXEwould bypythonand for perl, it would beperl -x)
See the documentation for examples
- Python2 (
python2With) - Python3 (
python3With) - Python39 (
python39With) - Python310 (
python310With) - Haskell (
haskellWith) - Perl (
perlWith)