Add libraries for iced to work

This commit is contained in:
Greg Hellings
2024-10-16 10:39:33 -05:00
parent 7d9383ad1e
commit cc47f32f84
+22 -1
View File
@@ -39,9 +39,30 @@
overlays = [ ]; overlays = [ ];
}; };
# https://numtide.github.io/devshell/intro.html # https://numtide.github.io/devshell/intro.html
devshells.default = { devshells.default = rec {
# These commands will be shown in the motd that users read # These commands will be shown in the motd that users read
# upon entering the shell # upon entering the shell
packages = with pkgs; [
expat
fontconfig
freetype
freetype.dev
libGL
pkg-config
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
wayland
libxkbcommon
];
env = [
{
name = "LD_LIBRARY_PATH";
value = builtins.foldl' (a: b: "${a}:${b}/lib") "${pkgs.vulkan-loader}/lib" packages;
}
];
commands = [ commands = [
{ {
package = pkgs.cargo; package = pkgs.cargo;