Skip to content

Commit

Permalink
add instructions to extend the pkg-config search path to the "Embed…
Browse files Browse the repository at this point in the history
…ding the Nix Evaluator" c api example
  • Loading branch information
prednaz committed May 16, 2024
1 parent 303268b commit 99667b0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/external-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ $ ./main
Nix version: 2.17
```

You might need to add the directory containing `nix-expr-c.pc` to the
`PKG_CONFIG_PATH` environment variable. For example after [building
Nix](https://github.com/NixOS/nix/blob/master/doc/manual/src/contributing/hacking.md#building-nix-with-flakes)
by executing the following.

```ShellSession
$ export PKG_CONFIG_PATH=$(realpath outputs/out/lib/pkgconfig):$PKG_CONFIG_PATH
```

# Writing a Nix language plug-in

In this example we add a custom primitive operation (_primop_) to `builtins`. It
Expand Down

0 comments on commit 99667b0

Please sign in to comment.