Hey there, I’m new to Nix and am kind of blown away by the potential. I’m trying to use it to create a nix-shell environment for building a Tauri project, but it appears that the dbus package doesn’t come with the dbus-1.pc pkg-config file that the Rust crate libdbus-sys needs in order to properly build against it.
My question is what is the best way to add the pkg-config file to the dbus package so that the Rust build will find it. Can I patch the dependency in the shell.nix configuration for this project, or should I update the dbus package to include the dbus-1.pc file. I’m assuming we’d want to update the dbus package for the long term so others don’t have to do locally patch it later, but I’m also curious if there is a good way to make local changes like this that are specific to a nix-shell environment.
The pkg-config file is in the dev output of the dbus package. It should
be sufficient to add dbus to the buildInputs and pkg-config to the
nativeBuildInputs and the setup hook from pkg-config should add it to
PKG_CONFIG_PATH automatically.