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:
parent
908a9c5c86
commit
9fa4a14d54
17
flake.nix
17
flake.nix
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue