A server for playing games of Hearts, which allows multiplayer play over the web. It is in fairly early stages, and there is no hosted instance of the server available.
I typically build this using nix and/or cabal.
I first run cabal2nix to generate a nix file from the project’s cabal file:
cabal2nix . > hearts.nixWhat I do next depends on whether I’m building the program during development, or for deployment.
If during development, I enter a nix shell and use the cabal that that provides to run the program:
nix-shell
[nix-shell]$ cabal run hearts-exeIf deploying, I use nix-build:
nix-build release.nixThis command eventually prints out the path to the resulting binary, which I can invoke directly.