nixpkgs/pkgs/applications/window-managers/wayfire/default.nix
Alyssa Ross 6bdb478d73
wayfire: add libGL build input
Currently, this is propagated from cairo, but that will soon no longer
be the case.
2023-10-20 22:03:04 +00:00

94 lines
1.5 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, meson
, ninja
, pkg-config
, wf-config
, cairo
, doctest
, libGL
, libdrm
, libexecinfo
, libevdev
, libinput
, libjpeg
, libxkbcommon
, wayland
, wayland-protocols
, wayland-scanner
, wlroots
, pango
, nlohmann_json
, xorg
}:
stdenv.mkDerivation (finalAttrs: {
pname = "wayfire";
version = "0.8.0";
src = fetchFromGitHub {
owner = "WayfireWM";
repo = "wayfire";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-YI8N1rY71b2ulv7tAdah7sibG4qq3kY0/hyS0cls5to=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
wayland-scanner
];
buildInputs = [
wf-config
libGL
libdrm
libexecinfo
libevdev
libinput
libjpeg
libxkbcommon
wayland-protocols
xorg.xcbutilwm
wayland
cairo
pango
nlohmann_json
];
propagatedBuildInputs = [
wlroots
];
nativeCheckInputs = [
cmake
doctest
];
# CMake is just used for finding doctest.
dontUseCmakeConfigure = true;
doCheck = true;
mesonFlags = [
"--sysconfdir /etc"
"-Duse_system_wlroots=enabled"
"-Duse_system_wfconfig=enabled"
(lib.mesonEnable "wf-touch:tests" (stdenv.buildPlatform.canExecute stdenv.hostPlatform))
];
passthru.providedSessions = [ "wayfire" ];
meta = {
homepage = "https://wayfire.org/";
description = "3D Wayland compositor";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ qyliss wucke13 rewine ];
platforms = lib.platforms.unix;
mainProgram = "wayfire";
};
})