Set environment.extraOutputsToInstall = [ "dev" ] - This makes include and I guess .o, .so files available for all packages listed in environment.systemPackages. See [1]
Set environment.variables.C_INCLUDE_PATH = "${nixpkgs.expat.dev}/include" - This makes them available for GCC
I usually use nix-locate to find the package/output in which the header lives. Including it in buildInputs is usually enough for the compiler to find it.
Hello! Looks like you’re enjoying the discussion, but you haven’t signed up for an account yet.
Tired of scrolling through the same posts? When you create an account you’ll always come back to where you left off. With an account you can also be notified of new replies, save bookmarks, and use likes to thank others. We can all work together to make this community great.