exercism.org/shell.nix

23 lines
454 B
Nix
Raw Normal View History

2024-03-24 18:34:11 +01:00
{
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"
'';
}