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,
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,
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,
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;
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
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
pcre2
2024-07-18 19:58:37 +02:00
utillinux
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
];
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
};
}