# nix: Include corgi patches in build sources \(\#63644\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/cff4edce88d8be881b2ff62ca6d9bf7a6a78ba41)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: cff4edce88d8be881b2ff62ca6d9bf7a6a78ba41

Requested commit: cff4edce88d8be881b2ff62ca6d9bf7a6a78ba41

Commit: cff4edce88d8be881b2ff62ca6d9bf7a6a78ba41

Tree: 930fdf0fe8dc29ccd5e3401f630a80e889c68dfb

Author: Jakub Konka

Committer: GitHub

## Message

```
nix: Include corgi patches in build sources (#63644)

The local `scratch` override lives under `corgi-patches`, but the Nix
build source filter omitted that directory. As a result, `nix develop`
failed while loading the patched dependency.

Include `corgi-patches` in the filtered source and preserve the patch
implementation in Crane's dummy dependency source. The latter is
required because `cxx-build` calls `scratch::path` while dependency
artifacts are built.

## Testing

- `nix fmt -- --ci nix/build.nix`
- `nix develop --command true`
- `nix develop --command cargo fmt --check`

Release Notes:

- N/A
```

## Parents

- [ff68a64caf5c00acb510fb84363d9d1eb9d574ed](https://git.cafe/gitcafe/zed/commit/ff68a64caf5c00acb510fb84363d9d1eb9d574ed?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/cff4edce88d8be881b2ff62ca6d9bf7a6a78ba41?format=markdown)
