hyprpicker/nix/default.nix
2024-07-18 21:01:51 +03:00

76 lines
1.1 KiB
Nix

{
lib,
stdenv,
pkg-config,
cmake,
cairo,
fribidi,
hyprutils,
libdatrie,
libGL,
libjpeg,
libselinux,
libsepol,
libthai,
libxkbcommon,
pango,
pcre,
pcre2,
utillinux,
wayland,
wayland-protocols,
wayland-scanner,
xorg,
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
hyprutils
libdatrie
libGL
libjpeg
libselinux
libsepol
libthai
libxkbcommon
pango
pcre
pcre2
utillinux
wayland
wayland-protocols
wayland-scanner
xorg.libXdmcp
];
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";
};
}