diff --git a/devenv.nix b/devenv.nix index eee6f1c..163e64e 100644 --- a/devenv.nix +++ b/devenv.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: { +{ pkgs, lib, ... }: { packages = with pkgs; [ gitFull @@ -7,8 +7,12 @@ # doppler doppler - # required for social cards in mkdocs-material + # required for social cards in mkdocs-material / CairoSVG cairo + pango + gdk-pixbuf + librsvg + fontconfig freetype libffi libjpeg @@ -16,6 +20,20 @@ pngquant ]; + # Ensure dynamic linker can find shared libs for Python ctypes consumers like CairoSVG + env.LD_LIBRARY_PATH = lib.makeLibraryPath [ + pkgs.cairo + pkgs.pango + pkgs.gdk-pixbuf + pkgs.librsvg + pkgs.fontconfig + pkgs.freetype + pkgs.zlib + ]; + + # Optional, but silences CI warning and ensures predictable locale + env.LANG = "en_US.UTF-8"; + languages = { javascript = { enable = true;