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-11-28 16:52:24 +01:00
|
|
|
hyprgraphics,
|
2024-01-01 14:22:43 +01:00
|
|
|
hyprlang,
|
2024-07-17 16:21:50 +02:00
|
|
|
hyprutils,
|
|
|
|
hyprwayland-scanner,
|
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,
|
2024-11-22 14:17:50 +01:00
|
|
|
libjxl,
|
2022-08-23 19:58:33 +02:00
|
|
|
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,
|
2024-07-17 16:21:50 +02:00
|
|
|
xorg,
|
2024-05-05 14:04:53 +02:00
|
|
|
commit,
|
2022-08-23 19:58:33 +02:00
|
|
|
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-05-05 14:04:53 +02:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace src/main.cpp \
|
|
|
|
--replace GIT_COMMIT_HASH '"${commit}"'
|
|
|
|
'';
|
|
|
|
|
2024-09-01 15:58:33 +02:00
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
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
|
2024-07-17 16:21:50 +02:00
|
|
|
hyprwayland-scanner
|
2022-08-23 19:58:33 +02:00
|
|
|
pkg-config
|
2024-09-01 14:06:23 +02:00
|
|
|
wayland-scanner
|
2022-08-23 19:58:33 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
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-11-28 16:52:24 +01:00
|
|
|
hyprgraphics
|
2024-01-01 14:22:43 +01:00
|
|
|
hyprlang
|
2024-07-17 16:21:50 +02:00
|
|
|
hyprutils
|
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
|
2024-11-22 14:17:50 +01:00
|
|
|
libjxl
|
2022-08-23 19:58:33 +02:00
|
|
|
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
|
2024-07-17 16:21:50 +02:00
|
|
|
xorg.libXdmcp
|
2022-09-26 21:52:38 +02:00
|
|
|
util-linux
|
2022-08-23 19:58:33 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A blazing fast wayland wallpaper utility with IPC controls";
|
2024-07-17 16:21:50 +02:00
|
|
|
homepage = "https://github.com/hyprwm/hyprpaper";
|
2022-08-23 19:58:33 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
mainProgram = "hyprpaper";
|
2024-07-17 16:21:50 +02:00
|
|
|
platforms = platforms.linux;
|
2022-08-23 19:58:33 +02:00
|
|
|
};
|
|
|
|
}
|