Problem building a package using cmake depending on proc / procps in flake

I’m trying to package moonbuddy-deck https://github.com/FrogTheFrog/moondeck-buddy in a flake, but am running into an issue where

       > CMake Error at src/lib/os/linux/CMakeLists.txt:13 (find_library):
       >   Could not find PROCPS_LIBRARY using the following names: proc, procps

I’ve tried pkgs.procps, pkgs.procs, pkgs.unixutils.procps, but none of them work. I’ve seen procps-ng in nixpkgs but can’t figure out how to use it as a nativebuildinput. My flake is the following:

{
  description = "moondeck-buddy";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
      in {
        packages = rec {
          default = moondeck-buddy;
          moondeck-buddy = pkgs.multiStdenv.mkDerivation {
            pname = "moondeck-buddy";
            version = "main";

            src = pkgs.fetchFromGitHub {
              owner = "FrogTheFrog";
              repo = "moondeck-buddy";
              rev = "main";
              sha256 = "/cVEBpXVIdgKZ9yonwUDayii0T/X04PmLhTH/2S2cFc=";
            };

            nativeBuildInputs = [
              pkgs.cmake
              pkgs.qt6.full
              pkgs.xorg.libX11
              pkgs.procps
              pkgs.procs
              pkgs.unixtools.procps
            ];
          };
        };
      }
    );
}

and the last 25 lines of the build look like:

       > -- Found WrapAtomic: TRUE
       > -- Found OpenGL: /nix/store/4v8zscynk625j9nrcf40cxhgcc1biq09-qt-full-6.8.0/lib/libOpenGL.so
       > -- Found WrapOpenGL: TRUE
       > -- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")
       > -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
       > -- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")
       > -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
       > -- Could NOT find XKB (missing: XKB_LIBRARY XKB_INCLUDE_DIR) (Required is at least version "0.5.0")
       > -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
       > -- Found X11: /nix/store/c551bwv9dafz0rcqj7jcrv7kji1y9abj-xorgproto-2024.1/include
       > -- Looking for XOpenDisplay in /nix/store/ikjw6a952jd9wn5k06mkj710xzabssr0-libX11-1.8.10/lib/libX11.so
       > -- Looking for XOpenDisplay in /nix/store/ikjw6a952jd9wn5k06mkj710xzabssr0-libX11-1.8.10/lib/libX11.so - found
       > -- Looking for gethostbyname
       > -- Looking for gethostbyname - found
       > -- Looking for connect
       > -- Looking for connect - found
       > -- Looking for remove
       > -- Looking for remove - found
       > -- Looking for shmat
       > -- Looking for shmat - found
       > CMake Error at src/lib/os/linux/CMakeLists.txt:13 (find_library):
       >   Could not find PROCPS_LIBRARY using the following names: proc, procps
       >
       > 
       > -- Configuring incomplete, errors occurred!

Any help would be greatly appreciated!

Adding

# Explicitly set library paths if needed
        cmakeFlags = [
          "-DPROCPS_LIBRARY=${pkgs.procps}/lib"
          "-DPROCPS_INCLUDE_DIR=${pkgs.procps}/include"
        ];

seems to get me past the error.

Now I’m stuck on

       > CMake Error at src/lib/os/linux/CMakeLists.txt:28 (target_link_libraries):
       >   Target "osspecificlib" links to:
       >
       >     X11::Xrandr
       >
       >   but the target was not found.  Possible reasons include:
       >
       >     * There is a typo in the target name.
       >     * A find_package call is missing for an IMPORTED target.
       >     * An ALIAS target is missing.

which I guess I’ll get to bang my head against for another two days.

xrandr isn’t from xrandr, its from libXrandr. That gets it to start compiling, but now I’m back to procps not having an actual library and failing at #include <proc/readproc.h>

So I was on the complete wrong path with building this as I need to use Ninja and cl it seems. That’s running into it’s own host of roadblocks so I’ll probably just call it quits as I don’t have enough time to dedicate to this fight.
As a workaround I tried appimage-run agains the prebuilt appimage, but of course that ran into its own host of issues.
Either way, it’s going to get off topic from this thread.