nixpkgs/pkgs/applications/window-managers/wayfire/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

89 lines
1.5 KiB
Nix
Raw Normal View History

2023-03-11 18:44:48 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, meson
, ninja
, pkg-config
, wf-config
, cairo
, doctest
, libdrm
, libexecinfo
, libinput
, libjpeg
, libxkbcommon
, wayland
, wayland-protocols
, wayland-scanner
, wlroots
, pango
, xorg
2020-05-02 17:38:59 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
2020-05-02 17:38:59 +00:00
pname = "wayfire";
2023-03-11 18:44:48 +00:00
version = "0.7.5";
2020-05-02 17:38:59 +00:00
2023-03-11 18:44:48 +00:00
src = fetchFromGitHub {
owner = "WayfireWM";
repo = "wayfire";
rev = "v${finalAttrs.version}";
2023-03-11 18:44:48 +00:00
fetchSubmodules = true;
hash = "sha256-Z+rR9pY244I3i/++XZ4ROIkq3vtzMgcxxHvJNxFD9is=";
2020-05-02 17:38:59 +00:00
};
2023-03-11 18:44:48 +00:00
nativeBuildInputs = [
meson
ninja
pkg-config
wayland-scanner
];
2020-05-02 17:38:59 +00:00
buildInputs = [
2023-03-11 18:44:48 +00:00
wf-config
libdrm
libexecinfo
libinput
libjpeg
libxkbcommon
wayland-protocols
xorg.xcbutilwm
wayland
cairo
pango
];
propagatedBuildInputs = [
wlroots
];
nativeCheckInputs = [
cmake
doctest
2020-05-02 17:38:59 +00:00
];
2021-06-24 15:13:35 +00:00
# CMake is just used for finding doctest.
dontUseCmakeConfigure = true;
2023-03-11 18:44:48 +00:00
doCheck = true;
mesonFlags = [
"--sysconfdir /etc"
"-Duse_system_wlroots=enabled"
"-Duse_system_wfconfig=enabled"
(lib.mesonEnable "wf-touch:tests" (stdenv.buildPlatform.canExecute stdenv.hostPlatform))
2023-03-11 18:44:48 +00:00
];
passthru.providedSessions = [ "wayfire" ];
2020-05-02 17:38:59 +00:00
meta = {
2020-05-02 17:38:59 +00:00
homepage = "https://wayfire.org/";
2021-04-29 02:53:30 +00:00
description = "3D Wayland compositor";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ qyliss wucke13 rewine ];
platforms = lib.platforms.unix;
mainProgram = "wayfire";
2020-05-02 17:38:59 +00:00
};
})