nix: devShell: add packages for proxy development

This commit is contained in:
Val Packett 2026-01-09 06:55:11 -03:00
parent 2d7860294d
commit 447ccad362

View file

@ -1,17 +1,45 @@
{ mkShell, lib, systemd, cargo, rust-analyzer, rustfmt, passt, bubblewrap, libkrun, muvm, sidebus-broker }: {
mkShell,
lib,
systemd,
cargo,
rust-analyzer,
rustfmt,
passt,
bubblewrap,
libkrun,
muvm,
sidebus-broker,
pkgs,
}:
let let
projects = [ libkrun muvm ]; projects = [
in mkShell { libkrun
muvm
];
in
mkShell {
MUVM_UDEVD_PATH = "${systemd}/lib/systemd/systemd-udevd"; MUVM_UDEVD_PATH = "${systemd}/lib/systemd/systemd-udevd";
nativeBuildInputs = lib.concatMap (pkg: pkg.nativeBuildInputs) projects; nativeBuildInputs = lib.concatMap (pkg: pkg.nativeBuildInputs) projects;
buildInputs = (lib.concatMap (pkg: pkg.buildInputs) projects) ++ [ buildInputs =
# virglrenderer (lib.concatMap (pkg: pkg.buildInputs) projects)
cargo ++ [
rust-analyzer # virglrenderer
rustfmt cargo
passt rust-analyzer
bubblewrap rustfmt
sidebus-broker passt
]; bubblewrap
sidebus-broker
]
++ (with pkgs; [
meson
wayland
wayland-protocols
wayland-scanner
cairo
libgbm
]);
# Enough things to compile wl-cross-domain-proxy, muvm, etc. in development
} }