Restructure to work with case-insensitive filesystems; use cabal to run tests.
Nix environment.