exercism.org/shell.nix
2024-03-24 18:37:22 +01:00

22 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"
'';
}