ghc.nix
ghc.nix copied to clipboard
Default `withDocs=true` sets `FONTCONFIG_FILE`, makes `code .` not find my font
If I open VS Code in a ghc.nix shell via nix-shell ghc.nix --run "code ."
, the font is broken. That's because $FONTCONFIG_FILE
is set for building docs. Ideally, I would like it not having to (unset FONTCONFIG_FILE; code .)
. Is there maybe another way to support both opening VS Code and building the docs?
Hey @sgraf812 ,
Have you tried to open VSCode outside of the ghc.nix environment and use the Nix Environment Selector plugin instead to load ghc.nix?
This works fine for me.
@supersven's suggestion sounds like the right approach to me. @sgraf812, if this works for you could you open an MR to mention this in the readme?
Unfortunately, I'm not using VS Code at the moment, so I can't tell for sure. But it seems plausible that the suggestion will work.