I'm trying to build the nvidiaBeta driver, but it fails to build nvidia-settings with the errorgtk+-2.x/ctkgridlicense.c:38:23: fatal error: dbus/dbus.h: No such file or directoryI have tried installing all kinds of dbus packages but the closest thing I get in my nix store is a dbus-c++/dbus.h from the dbus_cplusplus derivation.While searching I've read that apparently what I need is supposed to be contained in dbus-libs but it doesn't seem to be available in channel 17.03.I cannot seem to figure out which derivation is supposed to pull in this library. Can I somehow work around the issue and get it to use the one I have from the dbus_cplusplus derivation?
NixOS Build Error: dbus/dbus.h not found
nixos;nix
As already been mentioned Nix won't care about system or user installed packages when building a package, and the package in question needs to declare all of its dependencies explicitly.Regarding this specific issue - the dbus/dbus.h file can be found in the dev output of the dbus derivation. Nix also provides facilities for overriding package definitions and we can use those to feed dbus.dev into build inputs of nvidia settings. Adding the following to configuration.nix:nixpkgs.config.packageOverrides = pkgs:{  linuxPackages = pkgs.linuxPackages.extend(self: super: {    nvidia_x11_beta = super.nvidia_x11_beta // {      settings = super.nvidia_x11_beta.settings.overrideAttrs(old: {        buildInputs = old.buildInputs ++ [ pkgs.dbus.dev ];      });    };  });};allows the build to succeed on my 17.03 system.