make fonts work in nix-shell

This commit is contained in:
Daniel Barlow 2024-09-10 19:12:01 +01:00
parent 0c3091632f
commit fc5590bbd7

View File

@ -1,10 +1,20 @@
with import <nixpkgs> {} ; with import <nixpkgs> {} ;
let just = callPackage ./. {}; let
just = callPackage ./. {};
in just.overrideAttrs(o: { in just.overrideAttrs(o: {
nativeBuildInputs = o.nativeBuildInputs ++ (with pkgs; [ nativeBuildInputs = o.nativeBuildInputs ++ (with pkgs; [
socat socat
overmind overmind
entr entr
buildInputs = o.buildInputs ++ (with pkgs; [
gobject-introspection
gtk3
webkitgtk
]); ]);
JUST_HACKING = 1; 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/";
'';
}) })