infra/nix/pkgs/magmawm.nix

48 lines
789 B
Nix
Raw Normal View History

2023-11-23 17:52:21 +01:00
{
lib,
src,
craneLib,
pkg-config,
wayland,
libseat,
libinput,
libxkbcommon,
mesa,
udev,
dbus,
libGL,
}:
2023-11-23 17:52:21 +01:00
craneLib.buildPackage {
inherit src;
pname = "magmawm";
version = src.rev;
2024-11-15 10:17:56 +01:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [
wayland
udev
libxkbcommon
libinput
dbus
libseat
mesa
];
preFixup = ''
if [[ -e "$out/bin/magmawm" ]]; then
patchelf \
--add-needed "${libGL}/lib/libEGL.so.1" \
$out/bin/magmawm
fi
'';
meta = with lib; {
description = "A versatile and customizable Window Manager and Wayland Compositor";
homepage = "https://github.com/MagmaWM/MagmaWM";
license = licenses.gpl3;
2023-11-23 17:52:21 +01:00
platforms = platforms.linux;
2024-11-15 10:17:56 +01:00
maintainers = with maintainers; [ ];
};
}