I tried using
yesod devel to spin up a development server. However stack (
yesod devel calls stack) will attempt to build all (or at least a lot of the) dependencies, even if I am in a nix-shell that provides those. Running
nix-build works as expected and uses the binary cache.
How can I tell stack to use the dependencies provides by Nix?
The stack call issued by
yesod devel looks like
stack build --fast --file-watch homepage:lib --exec "/nix/store/dp2hxgh06wbbi75laxxbk2jswjfff5nz-yesod-bin-18.104.22.168/bin/yesod devel-signal" --flag homepage:dev --flag homepage:library-only