2022-09-02 18:34:15 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
pkg-config,
|
|
|
|
cmake,
|
|
|
|
cairo,
|
|
|
|
fribidi,
|
2024-07-18 19:58:37 +02:00
|
|
|
hyprutils,
|
2024-09-26 13:58:43 +02:00
|
|
|
hyprwayland-scanner,
|
2022-09-02 18:34:15 +02:00
|
|
|
libdatrie,
|
2023-12-31 01:01:32 +01:00
|
|
|
libGL,
|
2022-09-02 18:34:15 +02:00
|
|
|
libjpeg,
|
|
|
|
libselinux,
|
|
|
|
libsepol,
|
|
|
|
libthai,
|
2023-10-11 12:24:10 +02:00
|
|
|
libxkbcommon,
|
2022-09-02 18:34:15 +02:00
|
|
|
pango,
|
|
|
|
pcre,
|
2024-03-12 20:50:23 +01:00
|
|
|
pcre2,
|
2024-10-24 16:49:02 +02:00
|
|
|
util-linux,
|
2022-09-02 18:34:15 +02:00
|
|
|
wayland,
|
|
|
|
wayland-protocols,
|
|
|
|
wayland-scanner,
|
2024-07-18 19:58:37 +02:00
|
|
|
xorg,
|
2022-09-02 18:34:15 +02:00
|
|
|
debug ? false,
|
|
|
|
version ? "git",
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "hyprpicker" + lib.optionalString debug "-debug";
|
|
|
|
inherit version;
|
2024-03-12 20:50:23 +01:00
|
|
|
|
2022-09-02 18:34:15 +02:00
|
|
|
src = ../.;
|
|
|
|
|
2024-03-12 20:50:23 +01:00
|
|
|
cmakeBuildType =
|
|
|
|
if debug
|
|
|
|
then "Debug"
|
|
|
|
else "Release";
|
2022-09-02 18:34:15 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2024-09-26 13:58:43 +02:00
|
|
|
hyprwayland-scanner
|
2022-09-02 18:34:15 +02:00
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
fribidi
|
2024-07-18 19:58:37 +02:00
|
|
|
hyprutils
|
2022-09-02 18:34:15 +02:00
|
|
|
libdatrie
|
2023-12-31 01:01:32 +01:00
|
|
|
libGL
|
2022-09-02 18:34:15 +02:00
|
|
|
libjpeg
|
|
|
|
libselinux
|
|
|
|
libsepol
|
|
|
|
libthai
|
2024-07-18 19:58:37 +02:00
|
|
|
libxkbcommon
|
2022-09-02 18:34:15 +02:00
|
|
|
pango
|
|
|
|
pcre
|
2024-03-12 20:50:23 +01:00
|
|
|
pcre2
|
2024-10-24 16:49:02 +02:00
|
|
|
util-linux
|
2022-09-02 18:34:15 +02:00
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
wayland-scanner
|
2024-07-18 19:58:37 +02:00
|
|
|
xorg.libXdmcp
|
2022-09-02 18:34:15 +02:00
|
|
|
];
|
|
|
|
|
2024-03-12 21:06:09 +01:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"man"
|
|
|
|
];
|
|
|
|
|
2022-09-02 18:34:15 +02:00
|
|
|
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;
|
2024-03-12 20:50:23 +01:00
|
|
|
mainProgram = "hyprpicker";
|
2022-09-02 18:34:15 +02:00
|
|
|
};
|
|
|
|
}
|