nix-playgraound/19-devshell-vs-shellfor

19-devshell-vs-shellfor

This example compares two dev shell styles for the same local package.

It includes:

  • a generic mkShell shell,
  • a Haskell-specific shellFor shell,
  • one local package that both shells support, and
  • a test suite run by nix flake check.

Useful commands:

nix develop .#generic
nix develop .#shellFor
nix build
./result/bin/mini-shell-choice
nix flake check