Install

From Nix

Nix is a package manager with amazing properties.
It can be installed on any Linux or Unix-like (e.g., macOS) system.
# Released version
nix-env -iA intervalset \
        -f 'https://github.com/oar-team/kapack/archive/master.tar.gz'

# Latest version
git clone https://framagit.org/batsim/intervalset.git
nix-env -f intervalset/ci/default.nix -i

Build It Yourself

intervalset uses the Meson build system (and therefore Ninja).

# Get the code
git clone https://framagit.org/batsim/intervalset.git
cd intervalset

# Prepare build (call meson)
meson build # install prefix can be changed with --prefix
cd build

# Build the library (and the unit tests if google-test is found)
ninja

# Run the tests
ninja test

# Install
ninja install

Note

You first need to install intervalset’s dependencies. Notably:
Up-to-date dependencies are defined in the CI Nix package.
The CI package is probably based on the release Nix package.
Give a look at the CI build output for versions.