input-output-hk / input-output-hk/stack2nix
Don't use src = ./.
Open
- Dominant language
- Nix
- Stars
- 100
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
`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`](https://github.com/NixOS/nix/issues/1305#issuecomment-382721183).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.