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:
> -- 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!
> 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.