Skip to content

Latest commit

 

History

History
73 lines (45 loc) · 1.65 KB

README.md

File metadata and controls

73 lines (45 loc) · 1.65 KB

Quickly running

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.

Developing

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.

with vscode

See https://srid.ca/haskell-template/start#vscode

What this is

A nix flake to build the shmup example from the apecs repo.

Why

Because build issues having to install haskell and system libraries like opengl are a thing of the past thanks to Nix 😄