2022-05-17 13:11:24 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
2022-06-16 12:42:31 +02:00
|
|
|
meson,
|
2022-05-17 13:11:24 +02:00
|
|
|
ninja,
|
|
|
|
libdrm,
|
|
|
|
libinput,
|
|
|
|
libxcb,
|
|
|
|
libxkbcommon,
|
|
|
|
mesa,
|
|
|
|
mount,
|
|
|
|
pango,
|
|
|
|
wayland,
|
|
|
|
wayland-protocols,
|
|
|
|
wayland-scanner,
|
|
|
|
wlroots,
|
|
|
|
xcbutilwm,
|
|
|
|
xwayland,
|
|
|
|
enableXWayland ? true,
|
|
|
|
version ? "git",
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
2022-05-08 18:27:40 +02:00
|
|
|
pname = "hyprland";
|
2022-05-17 13:11:24 +02:00
|
|
|
inherit version;
|
2022-06-01 00:52:34 +02:00
|
|
|
src = ../.;
|
2022-05-08 18:27:40 +02:00
|
|
|
|
2022-05-17 13:11:24 +02:00
|
|
|
nativeBuildInputs = [
|
2022-06-16 12:42:31 +02:00
|
|
|
meson
|
2022-05-17 13:11:24 +02:00
|
|
|
ninja
|
|
|
|
pkg-config
|
2022-05-08 18:27:40 +02:00
|
|
|
];
|
|
|
|
|
2022-05-17 13:11:24 +02:00
|
|
|
buildInputs =
|
|
|
|
[
|
|
|
|
libdrm
|
|
|
|
libinput
|
|
|
|
libxcb
|
|
|
|
libxkbcommon
|
|
|
|
mesa
|
|
|
|
pango
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
wayland-scanner
|
|
|
|
(wlroots.override {inherit enableXWayland;})
|
|
|
|
xcbutilwm
|
|
|
|
]
|
|
|
|
++ lib.optional enableXWayland xwayland;
|
|
|
|
|
2022-06-16 12:42:31 +02:00
|
|
|
mesonBuildType = "release";
|
2022-05-08 18:27:40 +02:00
|
|
|
|
2022-06-16 12:42:31 +02:00
|
|
|
mesonFlags = lib.optional (!enableXWayland) "-DNO_XWAYLAND=true";
|
2022-05-08 20:18:13 +02:00
|
|
|
|
2022-06-16 12:42:31 +02:00
|
|
|
patches = [
|
|
|
|
# make meson use the provided wlroots instead of the git submodule
|
|
|
|
./meson-build.patch
|
|
|
|
];
|
2022-05-08 18:27:40 +02:00
|
|
|
|
2022-05-17 13:11:24 +02:00
|
|
|
passthru.providedSessions = ["hyprland"];
|
2022-05-16 12:33:00 +02:00
|
|
|
|
2022-05-08 18:27:40 +02:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/vaxerski/Hyprland";
|
2022-05-17 13:11:24 +02:00
|
|
|
description = "A dynamic tiling Wayland compositor that doesn't sacrifice on its looks";
|
2022-05-08 18:27:40 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
2022-05-17 13:11:24 +02:00
|
|
|
mainProgram = "Hyprland";
|
2022-05-08 18:27:40 +02:00
|
|
|
};
|
|
|
|
}
|