mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2024-12-22 22:29:49 +01:00
78 lines
1.1 KiB
Nix
78 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
pkg-config,
|
|
cmake,
|
|
cairo,
|
|
fribidi,
|
|
hyprutils,
|
|
hyprwayland-scanner,
|
|
libdatrie,
|
|
libGL,
|
|
libjpeg,
|
|
libselinux,
|
|
libsepol,
|
|
libthai,
|
|
libxkbcommon,
|
|
pango,
|
|
pcre,
|
|
pcre2,
|
|
util-linux,
|
|
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
|
|
hyprwayland-scanner
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
cairo
|
|
fribidi
|
|
hyprutils
|
|
libdatrie
|
|
libGL
|
|
libjpeg
|
|
libselinux
|
|
libsepol
|
|
libthai
|
|
libxkbcommon
|
|
pango
|
|
pcre
|
|
pcre2
|
|
util-linux
|
|
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";
|
|
};
|
|
}
|