stack2nix currently uses src = ./. for the current project, which means it adds huge dirs like .stack-work or potentially .git to the build environment, resulting in
warning: dumping very large path (> 256 MiB); this may run out of memory
and slow builds.
It should filterSource those away (at least .stack-work), and probably also handle the basename problem by using builtins.path.
stack2nixcurrently usessrc = ./.for the current project, which means it adds huge dirs like.stack-workor potentially.gitto the build environment, resulting inand slow builds.
It should
filterSourcethose away (at least.stack-work), and probably also handle the basename problem by usingbuiltins.path.