Using dev output in main nixos flake / home

I am doing CPP development and need PCL; I am installing it through vcpkg. However, I also need to have the visualization component. However, when I run vcpkg install I get

glew requires the following libraries from the system package manager:

      libxmu-dev
      libxi-dev
      libgl-dev

{ pkgs, ... }:

{
    environment.systemPackages = with pkgs; [
        xorg.libXmu
        xorg.libXi
        libGL

        pcl
        vcpkg
        vcpkg-tool
    ];
}

How can I get their dev output (the .h files in there include folder that is in the store) to be available in the normal sw/lib? I do not want to use shells because I do way too much dev with this kind of stuff, and having to enter a shell in terminal 30 is too much for me.

dotfile => GitHub - Jack17432/.dotfiles: Dot files

That’s how dev is done on NixOS.

Is there anyway around it or a way so that every terminal that I open will enter the shell?

The best way is to add the shell to the project and then use direnv to automatically activate the shell when you enter the project directory.
This way you don’t have to think about it and can use the specific version for each project.

2 Likes