2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2024-04-21 15:54:59 +00:00
|
|
|
, nixosTests
|
2023-04-12 12:48:02 +00:00
|
|
|
, cmake
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, wf-config
|
|
|
|
, cairo
|
|
|
|
, doctest
|
2023-11-16 04:20:00 +00:00
|
|
|
, libGL
|
2023-04-12 12:48:02 +00:00
|
|
|
, libdrm
|
|
|
|
, libexecinfo
|
2023-10-19 13:55:26 +00:00
|
|
|
, libevdev
|
2023-04-12 12:48:02 +00:00
|
|
|
, libinput
|
|
|
|
, libjpeg
|
|
|
|
, libxkbcommon
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, wayland-scanner
|
|
|
|
, wlroots
|
|
|
|
, pango
|
2023-10-19 13:55:26 +00:00
|
|
|
, nlohmann_json
|
2023-04-12 12:48:02 +00:00
|
|
|
, xorg
|
2020-12-25 13:55:36 +00:00
|
|
|
}:
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-12-25 13:55:36 +00:00
|
|
|
pname = "wayfire";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.9.0";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WayfireWM";
|
2023-08-04 22:07:22 +00:00
|
|
|
repo = "wayfire";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
fetchSubmodules = true;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-xQZ4/UE66IISZQLl702OQXAAr8XmEsA4hJwB7aXua+E=";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wayland-scanner
|
|
|
|
];
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
buildInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
libGL
|
2023-04-12 12:48:02 +00:00
|
|
|
libdrm
|
|
|
|
libexecinfo
|
2023-10-19 13:55:26 +00:00
|
|
|
libevdev
|
2023-04-12 12:48:02 +00:00
|
|
|
libinput
|
|
|
|
libjpeg
|
|
|
|
libxkbcommon
|
|
|
|
wayland-protocols
|
|
|
|
xorg.xcbutilwm
|
2023-10-19 13:55:26 +00:00
|
|
|
nlohmann_json
|
2023-04-12 12:48:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
wf-config
|
2023-04-12 12:48:02 +00:00
|
|
|
wlroots
|
2024-04-21 15:54:59 +00:00
|
|
|
wayland
|
|
|
|
cairo
|
|
|
|
pango
|
2023-04-12 12:48:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
cmake
|
|
|
|
doctest
|
2020-12-25 13:55:36 +00:00
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
# CMake is just used for finding doctest.
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"--sysconfdir /etc"
|
|
|
|
"-Duse_system_wlroots=enabled"
|
|
|
|
"-Duse_system_wfconfig=enabled"
|
2023-04-29 16:46:19 +00:00
|
|
|
(lib.mesonEnable "wf-touch:tests" (stdenv.buildPlatform.canExecute stdenv.hostPlatform))
|
2023-04-12 12:48:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
passthru.providedSessions = [ "wayfire" ];
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
passthru.tests.mate = nixosTests.mate-wayland;
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
meta = {
|
2020-12-25 13:55:36 +00:00
|
|
|
homepage = "https://wayfire.org/";
|
2021-05-03 20:48:10 +00:00
|
|
|
description = "3D Wayland compositor";
|
2023-08-04 22:07:22 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-07-01 15:47:52 +00:00
|
|
|
maintainers = with lib.maintainers; [ wucke13 rewine ];
|
2023-08-04 22:07:22 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
mainProgram = "wayfire";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
2023-08-04 22:07:22 +00:00
|
|
|
})
|