commit fc5590bbd714b714e2caa8f96b3ea1bb339f4313 parent 0c3091632f80c5114c5076023ba8671f1e2fff26 Author: Daniel Barlow <dan@telent.net> Date: Tue, 10 Sep 2024 19:12:01 +0100 make fonts work in nix-shell Diffstat:
| M | shell.nix | | | 12 | +++++++++++- |
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/shell.nix b/shell.nix @@ -1,10 +1,20 @@ with import <nixpkgs> {} ; -let just = callPackage ./. {}; +let + just = callPackage ./. {}; in just.overrideAttrs(o: { nativeBuildInputs = o.nativeBuildInputs ++ (with pkgs; [ socat overmind entr + buildInputs = o.buildInputs ++ (with pkgs; [ + gobject-introspection + gtk3 + webkitgtk ]); JUST_HACKING = 1; + + shellHook = with pkgs; '' + export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS; + export GIO_MODULE_DIR="${pkgs.glib-networking}/lib/gio/modules/"; + ''; })