34 cereal-wrap = fetchurl {
35 name = "cereal-1.3.0.tar.gz";
36 url = "https://github.com/USCiLab/cereal/archive/v1.3.0.tar.gz";
37 hash = "sha256-Mp6j4xMLAmwDpKzFDhaOfa/05uZhvGp9/sDXe1cIUdU=";
39 cereal-wrapdb = fetchurl {
40 name = "cereal-1.3.0-1-wrap.zip";
41 url = "https://wrapdb.mesonbuild.com/v1/projects/cereal/1.3.0/1/get_zip";
42 hash = "sha256-QYck5UT7fPLqtLDb1iOSX4Hnnns48Jj23Ae/LCfLSKY=";
46 expected-wrap = fetchgit {
48 url = "https://gitlab.com/cardboardwm/expected";
49 rev = "0ee13cb2b058809aa9708c45ca18d494e72a759e";
50 hash = "sha256-gYr4/pjuLlr3k6Jcrg2/SzJLtbgyA+ZN2oMHkHXANDo=";
54 wlroots-wrap = fetchgit {
56 url = "https://github.com/swaywm/wlroots";
58 hash = "sha256-1rE3D+kQprjcjobc95/mQkUa5y1noY0MdoYJ/SpFQwY=";
62 cardboard = fetchFromGitLab {
63 owner = "cardboardwm";
65 rev = "b54758d85164fb19468f5ca52588ebea576cd027";
66 hash = "sha256-Kn5NyQSDyX7/nn2bKZPnsuepkoppi5XIkdu7IDy5r4w=";
72 version = "unstable-2021-05-10";
74 src = allSources.cardboard;
113 tar xvf ${allSources.cereal-wrap}
114 unzip ${allSources.cereal-wrapdb}
115 cp -r ${allSources.expected-wrap} ${allSources.expected-wrap.name}
116 cp -r ${allSources.wlroots-wrap} ${allSources.wlroots-wrap.name}
120 sed '1i#include <functional>' -i cardboard/ViewAnimation.h
123 # "Inherited" from Nixpkgs expression for wlroots
125 (lib.mesonBool "man" true)
126 (lib.mesonOption "wlroots:logind-provider" "systemd")
127 (lib.mesonEnable "wlroots:libseat" false)
131 env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=array-bounds" ];
134 providedSessions = [ "cardboard" ];
138 broken = true; # Upstream is archived, fails to build on gcc-13.
139 homepage = "https://gitlab.com/cardboardwm/cardboard";
140 description = "Scrollable, tiling Wayland compositor inspired on PaperWM";
141 license = lib.licenses.gpl3Only;
142 mainProgram = "cardboard";
143 maintainers = with lib.maintainers; [ AndersonTorres ];
144 inherit (wayland.meta) platforms;