An open API service indexing awesome lists of open source software.

https://github.com/0xb10c/nix-bitcoin-core

A WORK_IN_PROGRESS Nix environment for Bitcoin Core development.
https://github.com/0xb10c/nix-bitcoin-core

Last synced: about 1 month ago
JSON representation

A WORK_IN_PROGRESS Nix environment for Bitcoin Core development.

Awesome Lists containing this project

README

        

# nix-bitcoin-core

A Nix environment for Bitcoin Core development. Helps install necessary and optional dependencies.

## Installation

One way is to have the **nix-bitcoin-core/** directory alongside your **bitcoin/** directory, then symlink the shell.nix across. (Here it's done from **bitcoin/** assuming a common parent directory).

```console
ln -s ../nix-bitcoin-core/shell.nix .
```

## Usage

Get your terminal into the **bitcoin/** directory and do some variant of this:
```console
nix-shell --arg withClang true --arg withGui false
```

### Supported arguments

| Name | Description | Valid values |
|--------------|-----------------------------------------------|---------------|
| `bdbVersion` | Which version of Berkeley DB to use, if any.
Use `--argstr` instead of `--arg` with this one. | `""` = off
`"db48"` = Compatible v4.8
`"db5"` = Incompatible v5.x |
| `spareCores` | How many cores to exclude when running `make` | `` = less than the number of logical cores |
| `withClang` | Whether to switch from GCC to Clang for compilation | `` |
| `withDebug` | Whether to pass `--enable-debug` to `./configure` | `` |
| `withGui` | Whether to enable bitcoin-qt | `` |