summaryrefslogtreecommitdiff
path: root/Exposing development headers on Nixos.md
diff options
context:
space:
mode:
authorJasper Ras <jaspert.ras@gmail.com>2025-04-18 21:01:49 +0200
committerJasper Ras <jaspert.ras@gmail.com>2025-04-18 21:01:49 +0200
commita8a8e1f984f20c8008f3a5f57cd39b416eb73104 (patch)
tree2262794b52d82c5fd9cbc55b503b52fafbd3af8a /Exposing development headers on Nixos.md
parent5fa69499917fab7a026c90c8321dbcc22734106a (diff)
parentab409a3701bf59dd73dc1e0324376bdac8b6d74f (diff)
vault backup: 2025-04-18 21:01:49
Diffstat (limited to 'Exposing development headers on Nixos.md')
-rw-r--r--Exposing development headers on Nixos.md15
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