2022-08-23 19:58:33 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
pkg-config,
|
|
|
|
cmake,
|
|
|
|
cairo,
|
2024-01-02 22:19:42 +01:00
|
|
|
expat,
|
2023-06-23 22:33:33 +02:00
|
|
|
file,
|
2022-08-23 19:58:33 +02:00
|
|
|
fribidi,
|
2024-01-01 14:22:43 +01:00
|
|
|
hyprlang,
|
2022-08-23 19:58:33 +02:00
|
|
|
libdatrie,
|
2023-12-18 00:50:59 +01:00
|
|
|
libGL,
|
2022-08-23 19:58:33 +02:00
|
|
|
libjpeg,
|
|
|
|
libselinux,
|
|
|
|
libsepol,
|
|
|
|
libthai,
|
2023-12-21 22:15:05 +01:00
|
|
|
libwebp,
|
2022-08-23 19:58:33 +02:00
|
|
|
pango,
|
|
|
|
pcre,
|
2024-01-02 22:19:42 +01:00
|
|
|
pcre2,
|
2022-09-26 21:52:38 +02:00
|
|
|
util-linux,
|
2022-08-23 19:58:33 +02:00
|
|
|
wayland,
|
|
|
|
wayland-protocols,
|
|
|
|
wayland-scanner,
|
|
|
|
libXdmcp,
|
|
|
|
debug ? false,
|
|
|
|
version ? "git",
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "hyprpaper" + lib.optionalString debug "-debug";
|
|
|
|
inherit version;
|
2024-03-12 21:24:09 +01:00
|
|
|
|
2022-08-23 19:58:33 +02:00
|
|
|
src = ../.;
|
|
|
|
|
2024-03-12 21:24:09 +01:00
|
|
|
cmakeBuildType =
|
|
|
|
if debug
|
|
|
|
then "Debug"
|
|
|
|
else "Release";
|
|
|
|
|
2022-08-23 19:58:33 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
2024-01-02 22:19:42 +01:00
|
|
|
expat
|
2023-06-23 22:33:33 +02:00
|
|
|
file
|
2022-08-23 19:58:33 +02:00
|
|
|
fribidi
|
2024-01-01 14:22:43 +01:00
|
|
|
hyprlang
|
2022-08-23 19:58:33 +02:00
|
|
|
libdatrie
|
2023-12-18 00:50:59 +01:00
|
|
|
libGL
|
2022-08-23 19:58:33 +02:00
|
|
|
libjpeg
|
|
|
|
libselinux
|
|
|
|
libsepol
|
|
|
|
libthai
|
2023-12-21 22:15:05 +01:00
|
|
|
libwebp
|
2022-08-23 19:58:33 +02:00
|
|
|
pango
|
|
|
|
pcre
|
2024-01-02 22:19:42 +01:00
|
|
|
pcre2
|
2022-08-23 19:58:33 +02:00
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
wayland-scanner
|
|
|
|
libXdmcp
|
2022-09-26 21:52:38 +02:00
|
|
|
util-linux
|
2022-08-23 19:58:33 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/hyprwm/hyprpaper";
|
|
|
|
description = "A blazing fast wayland wallpaper utility with IPC controls";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
mainProgram = "hyprpaper";
|
|
|
|
};
|
|
|
|
}
|