32 cereal-wrap = fetchurl {
33 name = "cereal-1.3.0.tar.gz";
34 url = "https://github.com/USCiLab/cereal/archive/v1.3.0.tar.gz";
35 hash = "sha256-Mp6j4xMLAmwDpKzFDhaOfa/05uZhvGp9/sDXe1cIUdU=";
37 cereal-wrapdb = fetchurl {
38 name = "cereal-1.3.0-1-wrap.zip";
39 url = "https://wrapdb.mesonbuild.com/v1/projects/cereal/1.3.0/1/get_zip";
40 hash = "sha256-QYck5UT7fPLqtLDb1iOSX4Hnnns48Jj23Ae/LCfLSKY=";
44 expected-wrap = fetchgit {
46 url = "https://gitlab.com/cardboardwm/expected";
47 rev = "0ee13cb2b058809aa9708c45ca18d494e72a759e";
48 sha256 = "sha256-gYr4/pjuLlr3k6Jcrg2/SzJLtbgyA+ZN2oMHkHXANDo=";
52 wlroots-wrap = fetchgit {
54 url = "https://github.com/swaywm/wlroots";
56 sha256 = "sha256-1rE3D+kQprjcjobc95/mQkUa5y1noY0MdoYJ/SpFQwY=";
60 cardboard = fetchFromGitLab {
61 owner = "cardboardwm";
63 rev = "b54758d85164fb19468f5ca52588ebea576cd027";
64 hash = "sha256-Kn5NyQSDyX7/nn2bKZPnsuepkoppi5XIkdu7IDy5r4w=";
70 version = "unstable-2021-05-10";
72 src = allSources.cardboard;
74 outputs = [ "out" "dev" "lib" "man" ];
105 tar xvf ${allSources.cereal-wrap}
106 unzip ${allSources.cereal-wrapdb}
107 cp -r ${allSources.expected-wrap} ${allSources.expected-wrap.name}
108 cp -r ${allSources.wlroots-wrap} ${allSources.wlroots-wrap.name}
112 sed '1i#include <functional>' -i cardboard/ViewAnimation.h
115 # "Inherited" from Nixpkgs expression for wlroots
117 (lib.mesonBool "man" true)
118 (lib.mesonOption "wlroots:logind-provider" "systemd")
119 (lib.mesonEnable "wlroots:libseat" false)
123 env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=array-bounds" ];
126 providedSessions = [ "cardboard" ];
130 broken = true; # Upstream is archived, fails to build on gcc-13.
131 homepage = "https://gitlab.com/cardboardwm/cardboard";
132 description = "Scrollable, tiling Wayland compositor inspired on PaperWM";
133 license = lib.licenses.gpl3Only;
134 mainProgram = "cardboard";
135 maintainers = with lib.maintainers; [ AndersonTorres ];
136 inherit (wayland.meta) platforms;