How to use Template Haskell like fileEmbed #380
-
I would like to build a monorepo with a subpackage using Yesod, but can't get that package to build, because of file embedding errors
and
I'm not sure if it has to do with Template Haskell (used for the file embedding) or that these files are not added into the nix build sandbox. Do you have an idea? I'm using the default project root (let haskell-flake manage everything) haskellProjects.default = {
# To avoid unnecessary rebuilds, we filter projectRoot:
# https://community.flake.parts/haskell-flake/local#rebuild
# projectRoot = builtins.toString (lib.fileset.toSource { ... commented out I would like to explicitly add those files to ./src (but have no idea how). Or could it be that this subpackage is called from a different working directoy? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I remember having to create a top-level symlink to make that work, though. |
Beta Was this translation helpful? Give feedback.
-
It's also important to set |
Beta Was this translation helpful? Give feedback.
Example, https://github.com/srid/ema/blob/16e2752267cd49027e281409daa25b6ecba68fd3/ema/src/Ema/Server/Common.hs#L98
I remember having to create a top-level symlink to make that work, though.
https://github.com/srid/ema/blob/master/www