Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1023 B
Nix

{
lib,
stdenv,
wlroots,
pkg-config,
wayland-scanner,
libxkbcommon,
pixman,
udev,
wayland,
wayland-protocols,
nixosTests,
}:
stdenv.mkDerivation {
pname = "tinywl";
inherit (wlroots)
version
src
patches
postPatch
;
nativeBuildInputs = [
pkg-config
wayland-scanner
];
buildInputs = [
libxkbcommon
pixman
udev
wayland
wayland-protocols
wlroots
];
makeFlags = [
"-C"
"tinywl"
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp tinywl/tinywl $out/bin
runHook postInstall
'';
passthru.tests = { inherit (nixosTests) tinywl; };
meta = {
homepage = "https://gitlab.freedesktop.org/wlroots/wlroots/tree/master/tinywl";
description = ''A "minimum viable product" Wayland compositor based on wlroots'';
maintainers = with lib.maintainers; [ qyliss ] ++ wlroots.meta.maintainers;
license = lib.licenses.cc0;
inherit (wlroots.meta) platforms;
mainProgram = "tinywl";
};
}