tvl-depot/users/glittershark/xanthous
sterni 1799ddf7f0 fix(gs/xanthous): update xanthous.cabal, make CI catch such errors
Since xanthous has a checked-in package.yaml and cabal file, the
haskellPackages build infrastructure will use the package.yaml file for
all builds. The resulting problem is that our CI won't actually catch build
failures that would be observable with cabal or when building from the
sdist.

We fix that by filtering out the package.yaml file in pkg.nix
additionally to the filters specified in .gitignore. For this we need
gitignoreFilter from gitignore.nix which we expose as part of a functor
set from third_party.gitignoreSource to maintain interface
compatibility.

Change-Id: I337185f484d2027341f38031dcd78898706904eb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2609
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
Reviewed-by: tazjin <mail@tazj.in>
2021-03-19 23:21:54 +00:00
..
.github Add 'users/glittershark/xanthous/' from commit '53b56744f4335c038724a1bcffc27a7eb8cf6a6d' 2020-06-16 01:05:44 +01:00
bench feat(xan): Add a benchmark suite 2020-06-28 23:38:48 +00:00
build Add 'users/glittershark/xanthous/' from commit '53b56744f4335c038724a1bcffc27a7eb8cf6a6d' 2020-06-16 01:05:44 +01:00
src chore(gs/xanthous): fix for hgeometry 0.12.0.1 2021-03-19 23:16:30 +00:00
test refactor(xan): Switch to V2 over tuples most places 2020-07-04 15:30:52 +00:00
.envrc Add 'users/glittershark/xanthous/' from commit '53b56744f4335c038724a1bcffc27a7eb8cf6a6d' 2020-06-16 01:05:44 +01:00
.gitignore chore(xan): Gitignore data directory 2020-07-03 03:35:05 +00:00
default.nix fix(gs/xanthous): fix build failures caused by dependency updates 2021-03-19 16:49:44 +00:00
hie.yaml feat(xan): Use haskell-language-server 2020-07-03 23:23:03 +00:00
LICENSE Add 'users/glittershark/xanthous/' from commit '53b56744f4335c038724a1bcffc27a7eb8cf6a6d' 2020-06-16 01:05:44 +01:00
nixpkgs.nix feat(3p/haskellPackages): port in patches from xanthous 2020-06-29 01:56:24 +00:00
package.yaml fix(gs/xanthous): fix build failures caused by dependency updates 2021-03-19 16:49:44 +00:00
pkg.nix fix(gs/xanthous): update xanthous.cabal, make CI catch such errors 2021-03-19 23:21:54 +00:00
README.org Add 'users/glittershark/xanthous/' from commit '53b56744f4335c038724a1bcffc27a7eb8cf6a6d' 2020-06-16 01:05:44 +01:00
Setup.hs Add 'users/glittershark/xanthous/' from commit '53b56744f4335c038724a1bcffc27a7eb8cf6a6d' 2020-06-16 01:05:44 +01:00
shell.nix feat(xan): Install hlint in shell 2020-07-04 15:30:52 +00:00
xanthous.cabal fix(gs/xanthous): update xanthous.cabal, make CI catch such errors 2021-03-19 23:21:54 +00:00

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