Skip to content
Flatr server, exposing API, written in Haskell
Haskell Nix
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
nixpkgs
test
.envrc
.gitignore
Flatr-App-Core.cabal
Flatr-App-Core.nix
LICENSE
README.md
Setup.hs
default.nix
example.dhall
shell.nix
smtpConfig.dhall
stack.yaml

README.md

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

You can’t perform that action at this time.