Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1021 Bytes

File metadata and controls

31 lines (19 loc) · 1021 Bytes

Hearts

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.

Building / running

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.nix

What 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-exe

If deploying, I use nix-build:

nix-build release.nix

This command eventually prints out the path to the resulting binary, which I can invoke directly.