Package requirement for glib not met when trying to install mu4e

I am trying to install mu4e on nixos using the instructions here. When I get to the step to run ./configure, I get the error message

configure: error: Package requirements (glib-2.0 >= 2.50 gobject-2.0 gio-2.0) were not met:

No package 'glib-2.0' found
No package 'gobject-2.0' found
No package 'gio-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I made sure to install the nixos.glib package, but the error still persists. The version of glib installed by nix is 2.68.2, is this the issue? If so, how would I install 2.0?

Thanks in advance!

1 Like

We already have mu4e: nixpkgs/default.nix at 9fcf2a8a2cb0f5b78edc8ec7ca877240e7fe3009 · NixOS/nixpkgs · GitHub

I made sure to install the nixos.glib package, but the error still persists.

If you’ve just cloned the repository, you will need to bring in the dependencies into your session and nix-env or nix-shell are your friends here. This has nothing to do with mu(4e) as such, but just how things work on NixOS:

https://nix.dev/tutorials/declarative-and-reproducible-developer-environments

1 Like