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

Flatr server, exposing API, written in Haskell

License

Notifications You must be signed in to change notification settings

flatrapp/core

Repository files navigation

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