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 Jan 18, 2020
1 parent 5bd7b02 commit 6eb49d6
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. They are needed to compile the Haskell notmuch
bindings. Note that package names may vary between different distributions.

* libtalloc-devel
* notmuch-devel

Make sure you have one of our supported GHC versions and
Cabal-install >= 2.2 installed. From a cloned checkout you then go:

```
# Updates the package list needed for cabal to download dependencies
$ cabal new-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 6eb49d6

Please # to comment.