summaryrefslogtreecommitdiff
path: root/Exposing development headers on Nixos.md
diff options
context:
space:
mode:
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