(Encoding?) error only occurs when `nix run` outside env

Hello and thank you for your time. I am experiencing an issue with the nix run command on the flake for my Haskell software.

  • :white_check_mark: Can run just using cabal run . -- build outside of the Nix environment/nix develop
  • :white_check_mark: Can run using nix run .#burrow -- build inside of the Nix environment
  • :x: Cannot run using nix run .#burrow -- build inside of the Nix environment
  • :white_check_mark: Can run cabal run . -- build inside the Nix env

The error that comes up when I use nix run .#burrow -- build outside the Nix environment is:

➜  burrow git:(master) nix run . -- build
burrow: data/fonts/basicthorpe.bmf: hGetContents: invalid argument (invalid byte sequence)

Related issue: nix build only works in develop environment? · Issue #48 · someodd/burrow · GitHub