all repos — searchix @ 03ebead32af418c6637d2235b1cb9ad5c06e2952

Search engine for NixOS, nix-darwin, home-manager and NUR users

docs/developing.md (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Development

### Pre-requisites

- [Nix (the package manager)](https://nixos.org/download/) with [flakes enabled](https://nixos.wiki/wiki/flakes#Enable_flakes_temporarily)
- Optional:
    - [cachix](https://docs.cachix.org/installation#installation)
    - [lorri](https://github.com/nix-community/lorri)
    - [direnv](https://direnv.net/)

### Setup

1. Optional: use cachix to avoid building some tools

    ```shell-session
    cachix use pre-commit-hooks
    ```

1. Start a nix shell (this will take some time)

    ```shell-session
    nix develop
    ```

1. Optional: install direnv, integrate it with your shell and then run

    ```shell-session
    ln -s .envrc.sample .envrc
    ```

    Now `nix develop` or `lorri shell` will be run for you automatically when you `cd` into this directory.