mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 18:05:58 +01:00
42 lines
971 B
Nix
42 lines
971 B
Nix
{ lib, stdenv, fetchFromGitHub, src, version, pkg-config, cmake, ninja, libdrm
|
|
, libinput, libxcb, libxkbcommon, mesa, mount, pango, wayland, wayland-protocols
|
|
, wayland-scanner, wlroots, xcbutilwm, xwayland, xwaylandSupport ? true }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "hyprland";
|
|
inherit src version;
|
|
|
|
nativeBuildInputs = [ cmake ninja pkg-config wayland ]
|
|
++ lib.optional xwaylandSupport xwayland;
|
|
|
|
buildInputs = [
|
|
libdrm
|
|
libinput
|
|
libxcb
|
|
libxkbcommon
|
|
mesa
|
|
pango
|
|
wayland-protocols
|
|
wayland-scanner
|
|
wlroots
|
|
xcbutilwm
|
|
];
|
|
|
|
dontBuild = true;
|
|
dontInstall = true;
|
|
|
|
patches = [ ./fix-makefile.diff ];
|
|
|
|
postPatch = ''
|
|
mkdir -p $out/bin
|
|
make install PREFIX=$out
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/vaxerski/Hyprland";
|
|
description =
|
|
"A dynamic tiling Wayland compositor that doesn't sacrifice on its looks";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|