2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, 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";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "0.8.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;
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-YI8N1rY71b2ulv7tAdah7sibG4qq3kY0/hyS0cls5to=";
|
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-04-12 12:48:02 +00:00
|
|
|
wf-config
|
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
|
|
|
|
wayland
|
|
|
|
cairo
|
|
|
|
pango
|
2023-10-19 13:55:26 +00:00
|
|
|
nlohmann_json
|
2023-04-12 12:48:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
wlroots
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
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;
|
|
|
|
maintainers = with lib.maintainers; [ qyliss wucke13 rewine ];
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
mainProgram = "wayfire";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
2023-08-04 22:07:22 +00:00
|
|
|
})
|