add alias to shell.nix to make a dummy x11 session

This commit is contained in:
2025-02-03 16:53:25 +01:00
parent c426b8078b
commit e332161e7a

View File

@ -1,6 +1,10 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [ libGL xorg.libX11 libGLU glfw ffmpeg];
shellHook="make -j";
nativeBuildInputs = with pkgs; [ libGL xorg.libX11 libGLU glfw ffmpeg xorg.xvfb];
shellHook=''
alias xdum="Xvfb :99 -screen 0 1920x1080x24 +extension GLX +render -noreset & export DISPLAY=:99";
alias xdumstop='pkill Xvfb'
make -j;
'';
}