69 lines
1.2 KiB
Nix
69 lines
1.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitLab
|
|
, cereal
|
|
, cmake
|
|
, libGL
|
|
, libX11
|
|
, libinput
|
|
, libxkbcommon
|
|
, meson
|
|
, ninja
|
|
, pixman
|
|
, pkg-config
|
|
, tl-expected
|
|
, wayland
|
|
, wayland-protocols
|
|
, wlroots
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cardboard";
|
|
version = "20210120.g7b15613";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "cardboardwm";
|
|
repo = "cardboard";
|
|
rev = "7b15613e6e1222a6a83d69a2e5da2810dfb45522";
|
|
sha256 = "044sb0lv1gcywpdncvlv7npxvbsqcc1mwpk0f6i73dinchdz7gmq";
|
|
};
|
|
|
|
patches = [
|
|
./0001-use-system-dependencies.patch
|
|
];
|
|
|
|
# CMake likes to own the configurePhase, but we only need it for dependency
|
|
# discovery. Remove it.
|
|
configurePhase = "mesonConfigurePhase";
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
cereal
|
|
libGL
|
|
libX11
|
|
libinput
|
|
libxkbcommon
|
|
pixman
|
|
tl-expected
|
|
wayland
|
|
wayland-protocols
|
|
wlroots
|
|
];
|
|
|
|
passthru.providedSessions = [ "cardboard" ];
|
|
|
|
meta = with lib; {
|
|
description = "Scrollable tiling Wayland compositor designed with laptops in mind";
|
|
homepage = "https://gitlab.com/cardboardwm/cardboard";
|
|
license = licenses.gpl3;
|
|
platforms = wlroots.meta.platforms;
|
|
broken = true;
|
|
};
|
|
}
|