From ab409a3701bf59dd73dc1e0324376bdac8b6d74f Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Fri, 18 Apr 2025 20:58:54 +0200 Subject: vault backup: 2025-04-18 20:58:54 --- Exposing development headers on Nixos.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Exposing development headers on Nixos.md (limited to 'Exposing development headers on Nixos.md') 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 {}}: pkgs.mkShell { + packages = [ pkgs.augeas pkgs.pkg-config pkgs.libxml2 ]; +} +``` \ No newline at end of file -- cgit v1.2.3