hyprpaper/nix/default.nix

103 lines
1.5 KiB
Nix
Raw Normal View History

2022-08-23 20:58:33 +03:00
{
lib,
stdenv,
pkg-config,
cmake,
aquamarine,
2022-08-23 20:58:33 +03:00
cairo,
2024-01-02 23:19:42 +02:00
expat,
file,
2022-08-23 20:58:33 +03:00
fribidi,
hyprgraphics,
2024-01-01 15:22:43 +02:00
hyprlang,
hyprutils,
hyprtoolkit,
hyprwire,
hyprwayland-scanner,
2023-12-18 02:50:59 +03:00
libGL,
libdatrie,
libdrm,
2022-08-23 20:58:33 +03:00
libjpeg,
2024-11-22 22:17:50 +09:00
libjxl,
2022-08-23 20:58:33 +03:00
libselinux,
libsepol,
libthai,
libwebp,
2022-08-23 20:58:33 +03:00
pango,
pcre,
2024-01-02 23:19:42 +02:00
pcre2,
util-linux,
2022-08-23 20:58:33 +03:00
wayland,
wayland-protocols,
wayland-scanner,
xorg,
2024-05-05 15:04:53 +03:00
commit,
2022-08-23 20:58:33 +03:00
debug ? false,
version ? "git",
}:
stdenv.mkDerivation {
pname = "hyprpaper" + lib.optionalString debug "-debug";
inherit version;
2022-08-23 20:58:33 +03:00
src = ../.;
2024-05-05 15:04:53 +03:00
prePatch = ''
substituteInPlace src/main.cpp \
--replace GIT_COMMIT_HASH '"${commit}"'
'';
2024-09-01 16:58:33 +03:00
depsBuildBuild = [
pkg-config
];
cmakeBuildType =
if debug
then "Debug"
else "Release";
2022-08-23 20:58:33 +03:00
nativeBuildInputs = [
cmake
hyprwayland-scanner
hyprwire
2022-08-23 20:58:33 +03:00
pkg-config
wayland-scanner
2022-08-23 20:58:33 +03:00
];
buildInputs = [
aquamarine
2022-08-23 20:58:33 +03:00
cairo
2024-01-02 23:19:42 +02:00
expat
file
2022-08-23 20:58:33 +03:00
fribidi
hyprgraphics
2024-01-01 15:22:43 +02:00
hyprlang
hyprutils
hyprtoolkit
hyprwire
2023-12-18 02:50:59 +03:00
libGL
libdatrie
libdrm
2022-08-23 20:58:33 +03:00
libjpeg
2024-11-22 22:17:50 +09:00
libjxl
2022-08-23 20:58:33 +03:00
libselinux
libsepol
libthai
libwebp
2022-08-23 20:58:33 +03:00
pango
pcre
2024-01-02 23:19:42 +02:00
pcre2
2022-08-23 20:58:33 +03:00
wayland
wayland-protocols
xorg.libXdmcp
util-linux
2022-08-23 20:58:33 +03:00
];
meta = with lib; {
description = "A blazing fast wayland wallpaper utility with IPC controls";
homepage = "https://github.com/hyprwm/hyprpaper";
2022-08-23 20:58:33 +03:00
license = licenses.bsd3;
mainProgram = "hyprpaper";
platforms = platforms.linux;
2022-08-23 20:58:33 +03:00
};
}