flakfiy some Justfile recipes and experiment with wayland based custom desktop

This commit is contained in:
steveej 2023-05-21 11:58:57 +02:00
parent 06a47c0d23
commit 476e10780b
18 changed files with 739 additions and 149 deletions

50
nix/pkgs/magmawm.nix Normal file
View file

@ -0,0 +1,50 @@
{ lib
, src
, craneLib
, pkg-config
, wayland
, libseat
, libinput
, libxkbcommon
, mesa
, pango
, udev
, dbus
, libGL
}:
craneLib.buildPackage {inherit src;
pname = "magmawm";
version = src.rev;
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;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}