mirror of
https://github.com/Garmelon/Arbeitszeitdokumentationsgenerator.git
synced 2026-04-12 16:55:04 +02:00
Package correct font in nix flake
This commit is contained in:
parent
76dc9685b0
commit
584c959bbe
1 changed files with 3 additions and 2 deletions
|
|
@ -16,6 +16,8 @@
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
naersk' = pkgs.callPackage naersk { };
|
naersk' = pkgs.callPackage naersk { };
|
||||||
|
# Create a fontconfig file with liberation_ttf (contains "Liberation Sans")
|
||||||
|
fonts = pkgs.makeFontsConf { fontDirectories = with pkgs; [ liberation_ttf ]; };
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
default = kit-timesheets;
|
default = kit-timesheets;
|
||||||
|
|
@ -39,8 +41,7 @@
|
||||||
WorkingDir = "/tmp";
|
WorkingDir = "/tmp";
|
||||||
Env = [
|
Env = [
|
||||||
# Fontconfig needs to be babysitted a bit in containers
|
# Fontconfig needs to be babysitted a bit in containers
|
||||||
"FONTCONFIG_FILE=${pkgs.fontconfig.out}/etc/fonts/fonts.conf"
|
"FONTCONFIG_FILE=${fonts}"
|
||||||
"FONTCONFIG_PATH=${pkgs.fontconfig.out}/etc/fonts/"
|
|
||||||
# Useful for read-only containers, as fontconfig will create a
|
# Useful for read-only containers, as fontconfig will create a
|
||||||
# cache there
|
# cache there
|
||||||
"HOME=/tmp"
|
"HOME=/tmp"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue