From 584c959bbebd9733f8b8f65f653d7a8aeef629b7 Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Tue, 7 May 2024 00:07:02 +0200 Subject: [PATCH] Package correct font in nix flake --- flake.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 53d8cec..f035f47 100644 --- a/flake.nix +++ b/flake.nix @@ -16,6 +16,8 @@ let pkgs = import nixpkgs { inherit system; }; naersk' = pkgs.callPackage naersk { }; + # Create a fontconfig file with liberation_ttf (contains "Liberation Sans") + fonts = pkgs.makeFontsConf { fontDirectories = with pkgs; [ liberation_ttf ]; }; in rec { default = kit-timesheets; @@ -39,8 +41,7 @@ WorkingDir = "/tmp"; Env = [ # Fontconfig needs to be babysitted a bit in containers - "FONTCONFIG_FILE=${pkgs.fontconfig.out}/etc/fonts/fonts.conf" - "FONTCONFIG_PATH=${pkgs.fontconfig.out}/etc/fonts/" + "FONTCONFIG_FILE=${fonts}" # Useful for read-only containers, as fontconfig will create a # cache there "HOME=/tmp"