autodep env variables

This commit is contained in:
Robin Appelman 2024-12-14 15:49:29 +01:00
commit 6055ccecb6
4 changed files with 75 additions and 37 deletions

15
autodeps/deps.nix Normal file
View file

@ -0,0 +1,15 @@
{
"openssl-sys" = { build = [ "openssl" ]; };
"libudev-sys" = { build = [ "eudev" ]; };
"libdbus-sys" = { build = [ "dbus" ]; };
"expat-sys" = { native = [ "cmake" ]; };
"servo-fontconfig-sys" = { build = [ "fontconfig" ]; };
"x11-dl" = { build = [ "xorg.libX11" "xorg.libXcursor" "xorg.libXrandr" "xorg.libXi" ]; };
"glutin_glx_sys" = {
build = [ "libGL" ];
env = pkgs: {
LD_LIBRARY_PATH = with pkgs; "/run/opengl-driver/lib/:${lib.makeLibraryPath ([libGL libGLU])}";
};
};
"wayland-egl" = { build = [ "egl-wayland" ]; };
}