exercism.org/shell.nix

29 lines
506 B
Nix

{
pkgs ? import <nixpkgs> { }
}:
pkgs.mkShellNoCC {
name = "exercism";
buildInputs = [
# coreutils provides "make" for c compiling
pkgs.coreutils
(pkgs.lua.withPackages(ps: with ps; [ busted]))
(pkgs.python311.withPackages(ps: with ps; [ pytest ]))
pkgs.go
# Rust (needs gcc compiler)
pkgs.gcc
pkgs.rustc
pkgs.cargo
];
shellHook = ''
# Expose exercism binary to PATH, see: https://exercism.org/cli-walkthrough
export PATH="$(pwd):$PATH"
'';
}