diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-04-18 20:58:54 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-04-18 20:58:54 +0200 |
commit | ab409a3701bf59dd73dc1e0324376bdac8b6d74f (patch) | |
tree | 17fba0a6811534858300a550c06376b25f9644c6 /Exposing development headers on Nixos.md | |
parent | c8c774ad7c0d98def2e83647d4f635ee275b66de (diff) |
vault backup: 2025-04-18 20:58:54
Diffstat (limited to 'Exposing development headers on Nixos.md')
-rw-r--r-- | Exposing development headers on Nixos.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Exposing development headers on Nixos.md b/Exposing development headers on Nixos.md new file mode 100644 index 0000000..72db811 --- /dev/null +++ b/Exposing development headers on Nixos.md @@ -0,0 +1,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 ]; +} +```
\ No newline at end of file |