input-output-hk / input-output-hk/stack2nix

Don't use src = ./.

Open
#119 3 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.