Pkg-config confusion during build (libprocps)

Hey,
I’m trying to build a package which uses node-gyp & pkg-config, but I’m running into an issue. The error:

npm error Package libprocps was not found in the pkg-config search path.
npm error Perhaps you should add the directory containing `libprocps.pc'
npm error to the PKG_CONFIG_PATH environment variable
npm error No package 'libprocps' found
npm error gyp: Call to 'pkg-config --cflags libprocps' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
npm error ✖ Rebuild Failed

However, I have included procps in my nativeBuildInputs.
I tried debugging, and found that when doing:

$ nix-shell -p pkg-config procps

$ pkg-config --list-all
libproc2 libproc2 - Library to control and query process state

So, libprocps is not installed by pkgs.procps, but libproc2 is.

Can I reference this one somehow? Or is this not the solution?

are you trying to build this: GitHub - thlorenz/procps: Node.js bindings for procps, a library that provides information about processes using the /proc filesystem? because it references procps, not procps-ng which is what nixpkgs is packaging, which doesn’t produce a library.

Hey,

I’m trying to build this Electron application (GitHub - skillbert/alt1-electron: Experimantal electron implementation of Alt1 Toolkit).
However, I have very little experience in building my own derivations so it’s possible I’m doing something wrong.