Add `gmp` and `ncurses` as nix dependencies (#616)