Skip to content

Commit

Permalink
Add generic build instructions (Cabal)
Browse files Browse the repository at this point in the history
This patch adds build instructions to use with cabal.

This is mainly targeting users who don't have access to nix or use a
Fedora distro. Cabal is somewhat universal to Haskell so theoretically
using Cabal should work everywhere. However, these instructions don't
give any help in regards problems users could face like:

* missing system dependencies
* GHC problems
* version mismatches
* etc

Fixes #352
  • Loading branch information
romanofski committed Dec 20, 2019
1 parent 5bd7b02 commit 6c84729
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,33 @@ and `nix-env` to install the application:
```
$ nix-env --file default.nix --install
```

### Cabal

Install development packages for system library dependencies
first. These are needed to compile the Haskell notmuch
bindings. Package names may vary between different distributions:

* libtalloc-devel
* notmuch-devel

Make sure you have at least one of our supported GHC and Cabal-install
>= 2.2 installed. From a cloned checkout you then go:
```
# Updates the package list needed for cabal to download dependencies
$ cabal update
# Builds all dependencies, the purebred library and executable and
# installs it to ~/.cabal/bin
$ cabal new-build
Resolving dependencies...
Build profile: ...
In order, the following will be built (use -v for more details):
- ...
- ...
$ cabal new-install exe:purebred
# start purebred
$ ~/.cabal/bin/purebred
```

0 comments on commit 6c84729

Please sign in to comment.