Assuming you have nix installed, just run:
nix run github:ParetoOptimalDev/apecs-shmup-example
click here for nix install instructions otherwise
sh <(curl -L https://nixos.org/nix/install) --daemon
Or see the Nix download page for other options if you don't like that one or it somehow manages not to work.
with direnv already installed
git clone https://github.com/ParetoOptimalDev/apecs-shmup-example.git
cd apecs-shmup-example
, run
without direnv
git clone https://github.com/ParetoOptimalDev/apecs-shmup-example.git
cd apecs-shmup-example
nix develop
, run
Powers you have in the nix devshell thanks to srid/haskell-template
~/apecs-shmup-example $ ,
Available commands:
## Dev Tools
, docs : Start Hoogle server for project dependencies
, repl : Start the cabal repl
## Dev Tools
, fmt : Format the source tree
## Primary
, run : Run the project with ghcid auto-recompile
See the tips section on srid/haskell-template for more info.
See https://srid.ca/haskell-template/start#vscode
A nix flake to build the shmup example from the apecs repo.
Because build issues having to install haskell and system libraries like opengl are a thing of the past thanks to Nix 😄