Add a few relatively uncontroversial patches to fix some broken packages that I had developed for xanthous to the top-level third_party tree, so they can be reused by other people in the monorepo Change-Id: I68740477bda278c5dcc123080029ee4bd2cae37a Reviewed-on: https://cl.tvl.fyi/c/depot/+/740 Reviewed-by: Profpatsch <mail@profpatsch.de> Reviewed-by: tazjin <mail@tazj.in> |
||
|---|---|---|
| .. | ||
| .github | ||
| bench | ||
| build | ||
| src | ||
| test | ||
| .envrc | ||
| .gitignore | ||
| default.nix | ||
| hie.sh | ||
| LICENSE | ||
| nixpkgs.nix | ||
| package.yaml | ||
| pkg.nix | ||
| README.org | ||
| Setup.hs | ||
| shell.nix | ||
| xanthous.cabal | ||
Xanthous
Building
$ nix build
Running
$ ./result/bin/xanthous [--help]
Keyboard commands
Keyboard commands are currently undocumented, but can be found in [this file. Movement uses the nethack-esque hjklybnu.
Development
Use lorri, or run everything in a nix-shell
# Build (for dev)
$ cabal new-build
# Run the game
$ cabal new-run xanthous
# Run tests
$ cabal new-run test
# Run a repl
$ cabal new-repl