input-output-hk/stack2nix

Don't use src = ./.

Opened this issue · 3 comments

nh2 commented

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.

This was merged in master, so closing.

nh2 commented

@domenkozar What fixed this?

As mentioned in nh2@9d390be

This is NOT the fix for #119; that one is about making stack2nix
generate fixes like this one, for all packages you run it on.

Sorry, was confused by the commit message.