summaryrefslogtreecommitdiff
path: root/Exposing development headers on Nixos.md
blob: 72db8113f0e4be5c387309236abc59f95ba7d39d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
tags:
  - nixos
---
On regular distro's such as Ubuntu we would install them system-wide, for example, `apt install libx`

On NixOS these kind of outputs (on search.nixos.org the pkgs should specify out: dev) are not exposed by default, so installing the package system wide doesn't work.

Instead they get loaded when the package is installed in a nix shell:
```
[nix-shell:~/projects/group.one/vps/openstack/puppet-neutron]$ cat shell.nix
{ pkgs ? import <nixpkgs> {}}: pkgs.mkShell {
  packages = [ pkgs.augeas pkgs.pkg-config pkgs.libxml2 ];
}
```