hyprpicker/nix/default.nix

77 lines
1.1 KiB
Nix
Raw Normal View History

2022-09-02 18:34:15 +02:00
{
lib,
stdenv,
pkg-config,
cmake,
cairo,
fribidi,
libdatrie,
2023-12-31 01:01:32 +01:00
libGL,
2022-09-02 18:34:15 +02:00
libjpeg,
libselinux,
libsepol,
libthai,
libxkbcommon,
2022-09-02 18:34:15 +02:00
pango,
pcre,
pcre2,
2022-09-02 18:34:15 +02:00
utillinux,
wayland,
wayland-protocols,
wayland-scanner,
wlroots,
libXdmcp,
debug ? false,
version ? "git",
}:
stdenv.mkDerivation {
pname = "hyprpicker" + lib.optionalString debug "-debug";
inherit version;
2022-09-02 18:34:15 +02:00
src = ../.;
cmakeBuildType =
if debug
then "Debug"
else "Release";
2022-09-02 18:34:15 +02:00
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
cairo
fribidi
libdatrie
2023-12-31 01:01:32 +01:00
libGL
2022-09-02 18:34:15 +02:00
libjpeg
libselinux
libsepol
libthai
pango
pcre
pcre2
2022-09-02 18:34:15 +02:00
wayland
wayland-protocols
wayland-scanner
wlroots
libXdmcp
libxkbcommon
2022-09-02 18:34:15 +02:00
utillinux
];
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;
mainProgram = "hyprpicker";
2022-09-02 18:34:15 +02:00
};
}