23 lines
454 B
Nix
23 lines
454 B
Nix
|
{
|
||
|
pkgs ? import <nixpkgs> { }
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
lua = pkgs.lua.withPackages(ps: with ps; [ busted]);
|
||
|
python = pkgs.python311.withPackages(ps: with ps; [ pytest ]);
|
||
|
|
||
|
in pkgs.mkShellNoCC {
|
||
|
name = "exercism";
|
||
|
buildInputs = [
|
||
|
# coreutils provides "make" for c compiling
|
||
|
pkgs.coreutils
|
||
|
lua
|
||
|
python
|
||
|
];
|
||
|
|
||
|
shellHook = ''
|
||
|
# Expose exercism binary to PATH, see: https://exercism.org/cli-walkthrough
|
||
|
export PATH="$(pwd):$PATH"
|
||
|
'';
|
||
|
}
|