Trying to install fetchit browser - The system library `glib-2.0` required by crate `glib-sys` was not found

I’m trying to build the fetchit browser from source code, which is a tauri 2 desktop shell.

$ npm run tauri dev

...
pkg-config exited with status code 1
  > PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags glib-2.0 'glib-2.0 >= 2.70'

  pkg-config output:
    Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'glib-2.0' found
    Package glib-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `glib-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'glib-2.0' found

  The system library `glib-2.0` required by crate `glib-sys` was not found.
  The file `glib-2.0.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
  The PKG_CONFIG_PATH environment variable is not set.

  HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `glib-2.0.pc`.

warning: build failed, waiting for other jobs to finish...

I don’t know where to find system library glib-2.0.

Will this work for you?

guix install glib

I run into this issue:

$ guix package -i glib
The following package will be installed:
   glib 2.86.0

guix package: error: profile contains conflicting entries for glib
guix package: error:   first entry: glib@2.86.0 /gnu/store/f3fvh9m9ia1wxgkys3sqfsq531dbfbjd-glib-2.86.0
guix package: error:   second entry: glib@2.86.0 /gnu/store/762g48vi94gkj9s9mhpbp84hm8ggfmky-glib-2.86.0
guix package: error:    ... propagated from libxfce4util@4.20.1
hint: Try upgrading both `glib' and `libxfce4util', or remove one of them from the profile.

Not sure what to do with this.

hmm, are you trying to install something directly with npm? I have never used it so i don’t know how that works and if they have their own environments like python, but this might be some fhs-related shenanigans going on. I think Guix has a way to emulate fhs environments (i think the Steam package in nonguix also uses this), but i never messed with that myself so i don’t think i can be of much help beyond that.

I should have said that I’m building something from source code. Fixed in my opening post.
I’m not sure how the code is being built. I just followed the instructions.

I’ll look into it myself later.