Refactor flake.nix to use LD_LIBRARY_PATH for dependencies.

Replaced direct buildInputs with LD_LIBRARY_PATH configuration to streamline dependency handling. This makes library paths explicitly managed and simplifies runtime linking for the required packages. Updated the devShells configuration accordingly.
This commit is contained in:
Harald Hoyer 2025-04-14 16:44:25 +02:00
parent 908a9c5c86
commit 9fa4a14d54

View file

@ -14,15 +14,22 @@
...
}:
extendDerivations {
env.LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:${
with pkgs;
pkgs.lib.makeLibraryPath [
xorg.libX11
xorg.libXcursor
xorg.libXi
libxkbcommon
xorg.libxcb
pkgs.vulkan-loader
pkgs.glfw
]
}";
buildInputs = with pkgs; [
pkgs.pkg-config
pkgs.alsa-lib.dev
pkgs.udev.dev
xorg.libX11
xorg.libXcursor
xorg.libxcb
xorg.libXi
libxkbcommon
];
} devShells;