Hi everyone,
I’m currently working on building a custom NixOS ISO with river window manager, and I’ve encountered an issue that I can’t seem to resolve. During the build process, I receive the following error message:
> Error: Could not find/open font
I’ve tried troubleshooting the issue on my own, but I’m not having much luck. Here is a link to the full build logs for more context: Logs.
Here are parts of logs:
error: builder for '/nix/store/f6b4wz567x8w4i2rgwrlpjn4721qsyxj-wayland-1.22.0.drv' failed with exit code 1;
last 30 log lines:
> Error: Could not find/open font
> Error: Could not find/open font
> [4/107] Generating doc/doxygen/xml/x-architecture.png with a custom command
> FAILED: doc/doxygen/xml/x-architecture.png
> /nix/store/147d9l53l4b71hywypbcgkcq9pbclhb1-graphviz-10.0.1/bin/dot -Tpng -odoc/doxygen/xml/x-architecture.png ../doc/doxygen/dot/x-architecture.gv
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> Warning: no value for width of non-ASCII character 226. Falling back to width of space character
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> Error: Could not find/open font
> [5/107] Generating src/wayland.dtd.h with a custom command (wrapped by meson to capture output)
> [6/107] Compiling C object src/libwayland-private.a.p/wayland-os.c.o
> [7/107] Compiling C object src/libwayland-util.a.p/wayland-util.c.o
> [8/107] Compiling C object src/libwayland-private.a.p/connection.c.o
> ninja: build stopped: subcommand failed.
For full logs, run 'nix log /nix/store/f6b4wz567x8w4i2rgwrlpjn4721qsyxj-wayland-1.22.0.drv'.
error: 1 dependencies of derivation '/nix/store/8jsja9dz3l99fbz16c1ffkjqw243x6b0-vulkan-loader-1.3.283.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/c38wyxx14f76idjazwnjj6hy7fm7ai86-wayland-protocols-1.35.drv' failed to build
error: 2 dependencies of derivation '/nix/store/l2wgwchga23gg2ig710xmspy8np3skr0-egl-wayland-1.1.14.drv' failed to build
error: 2 dependencies of derivation '/nix/store/zhsmr9xqb8ac5b9mpm0d9m4f2l58x2a0-grim-1.4.1.drv' failed to build
error: 2 dependencies of derivation '/nix/store/jfsz33mqsnsqaj3i7nag6jwl08p9y420-libxkbcommon-1.7.0.drv' failed to build
error: 3 dependencies of derivation '/nix/store/j53ml0qzq25l5ba707bvkc0wv32dcfk0-mesa-24.1.2.drv' failed to build
error: 2 dependencies of derivation '/nix/store/2dx1ajljdfmgi28pr9wgidfwf47r29h6-wl-clipboard-2.2.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/blrhscfhhjmhg3j5wg3hij5q4qphi0y7-graphics-drivers.drv' failed to build
error: 3 dependencies of derivation '/nix/store/pq5sbh4zr7cwp82spw04g16q7iflygm8-gtk+3-3.24.42.drv' failed to build
error: 3 dependencies of derivation '/nix/store/vyczgnc2sa5ksd1abddslv31ih74qhqj-gtk+3-3.24.42.drv' failed to build
error: 4 dependencies of derivation '/nix/store/ra7sn524zfv7znbzfwy42sqw3srifi55-gtk4-4.14.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4nd1h602w7adfrai69bjk4q2wsg5av4n-libei-1.2.1.drv' failed to build
error: 3 dependencies of derivation '/nix/store/fz3zy8ss9y4s3zc8gwf26vjm12bxvjy3-slurp-1.5.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1gbgdzgcv12l1114kd9bpgsq5nfmv75a-xkbvalidate.drv' failed to build
Code causing the problem:
{
pkgs,
inputs,
config,
...
}: [
(inputs.wrapper-manager.lib.build {
inherit pkgs;
modules = [
{
wrappers = {
foot = import ./configs/foot {inherit inputs pkgs cfg;};
};
}
];
})
(import ./configs/river {inherit pkgs config;})
]
Additional Information:
- I have also tried using different window managers (such as Sway) without using the wrapper-manager, but the issue persists. Additionally, I attempted using different CD/DVD images (e.g., installation-cd-graphical-gnome, iso-image.nix), but the problem remains the same.
Has anyone encountered a similar issue or can provide guidance on how to fix this font-related error during the ISO build process?
Thanks in advance for any help or suggestions!
Meldurindir