So I usually use nix-shell for development and include the dev libraries, for example:
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
pkgconfig
cairo
gobject-introspection
gtk3
libnotify
tmux
libappindicator
];
shellHook = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${pkgs.lib.makeLibraryPath[
pkgs.cairo
pkgs.gobject-introspection
pkgs.gtk3
pkgs.libnotify
pkgs.libappindicator
]};
'';
}
Here I am able to export the library path.
Similarly is it possible to export it from configuration.nix so that it would be available globally, the .so (dll files) from each library.
For example if I try to run protonvpn-gui (installed from pip) it gives me error that Gtk namespace is not found, but if I run from nix-shell(with the above config), it works, I want to run normally than from nix-shell.