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

36
nix/pkgs/jay.nix Normal file
View file

@ -0,0 +1,36 @@
{ lib
, src
, rustPlatform
, libinput
, libxkbcommon
, mesa
, pango
, udev
}:
rustPlatform.buildRustPackage rec {
pname = "jay";
version = src.rev;
inherit src;
cargoLock.lockFile = "${src}/Cargo.lock";
buildInputs = [
libxkbcommon
mesa
pango
udev
libinput
];
RUSTC_BOOTSTRAP = 1;
meta = with lib; {
description = "A Wayland compositor written in Rust";
homepage = "https://github.com/mahkoh/jay";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ dit7ya ];
};
}

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; [ ];
};
}