Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Latest commit

 

History

History
47 lines (33 loc) · 1.09 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.09 KB

Flatr-App-Core

Configure:

Flatr core is configured using the Dhall language. The default search path is ./config.dhall but it can also explicitly specified as the first argument:

$ flatr-core config.dhall

There is an example configuration file at example.dhall.

NixOS or nix packages manager

Prerequisites

$ nix-env -i cabal-install

Build

$ nix-build

Run

Launch the nix shell $ ./result/bin/Flatr-App-Core-exe

Launching the nix shell

Either launch it yourself with $ nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-17.09.tar.gz

or install direnv and allow it do be active in the directory direnv allow.


Non NixOS

Prerequisites

Install stack with your package manager

Configure

$ stack setup --install-ghc

Build

$ # install system dependencies like e.g zlib $ stack build --fast --pedantic

Run

$ stack exec Flatr-App-Core-exe

Compile statically linked

$ stack build --ghc-options='-optl-static -optl-pthread' --force-dirty