{ lib, stdenv, pkg-config, cmake, cairo, fribidi, libdatrie, libGL, libjpeg, libselinux, libsepol, libthai, libxkbcommon, pango, pcre, pcre2, utillinux, wayland, wayland-protocols, wayland-scanner, libXdmcp, debug ? false, version ? "git", }: stdenv.mkDerivation { pname = "hyprpicker" + lib.optionalString debug "-debug"; inherit version; src = ../.; cmakeBuildType = if debug then "Debug" else "Release"; nativeBuildInputs = [ cmake pkg-config ]; buildInputs = [ cairo fribidi libdatrie libGL libjpeg libselinux libsepol libthai pango pcre pcre2 wayland wayland-protocols wayland-scanner libXdmcp libxkbcommon utillinux ]; outputs = [ "out" "man" ]; meta = with lib; { homepage = "https://github.com/hyprwm/hyprpicker"; description = "A wlroots-compatible Wayland color picker that does not suck"; license = licenses.bsd3; platforms = platforms.linux; mainProgram = "hyprpicker"; }; }