On Wed, May 18, 2022 at 4:11 PM Alyssa Ross <hi@alyssa.is> wrote:
Actually, this looking more closely at the stack trace, this is more likely to be it not having a writeable XDG_CONFIG_HOME or HOME directory. So you could try setting those to temporary directories in the build. Something like
export XDG_CONFIG_HOME="$(mktemp -d)"
I think it was a good idea to test but unfortunately it did not work out: '' export XDG_CONFIG_HOME="$(mktemp -d)" echo $XDG_CONFIG_HOME drawio in.drawio --export --output test.svg jekyll build --disable-disk-cache -s $src -d $out '' $ nix-build this derivation will be built: /nix/store/k2z4xgs1dpp5p52sds98vl46x7myl924-spectrum-docs.drv building '/nix/store/k2z4xgs1dpp5p52sds98vl46x7myl924-spectrum-docs.drv'... /build/tmp.mOBtFDpZlO Fontconfig error: Cannot load default config file: No such file: (null) /build/.attr-0l2nkwhif96f51f4amnlf414lhl4rv9vh8iffyp431v6s28gsr90: line 3: 4 Segmentation fault (core dumped) drawio in.drawio --export --output test.svg error: builder for '/nix/store/k2z4xgs1dpp5p52sds98vl46x7myl924-spectrum-docs.drv' failed with exit code 139; last 3 log lines: > /build/tmp.mOBtFDpZlO > Fontconfig error: Cannot load default config file: No such file: (null) > /build/.attr-0l2nkwhif96f51f4amnlf414lhl4rv9vh8iffyp431v6s28gsr90: line 3: 4 Segmentation fault (core dumped) drawio in.drawio --export --output test.svg For full logs, run 'nix log /nix/store/k2z4xgs1dpp5p52sds98vl46x7myl924-spectrum-docs.drv'. Best, -Ville