Skip to content

Commit

Permalink
chore(docs): Link to fileset docs
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed May 17, 2024
1 parent e47512f commit 7cdc002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/local.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ When a local package is the only top-level one, however, any file in the reposit
To avoid rebuilding the top-level package whenever irrelevant files change, you can do one of the following:

- Put the top-level package in a sub-directory.
- Or, set `projectRoot` to a subset of your flake root, [for example](https://github.com/srid/haskell-template/blob/033913a6fe418ea0c25ec2c2604ab4030563ba2e/flake.nix#L28-L34):
- Or, set `projectRoot` to a subset of your flake root using [`fileset.toSource`](https://nixos.org/manual/nixpkgs/stable/#function-library-example-lib.fileset.toSource). For [example](https://github.com/srid/haskell-template/blob/033913a6fe418ea0c25ec2c2604ab4030563ba2e/flake.nix#L28-L34):
```nix
{
haskellProjects.default = {
Expand All @@ -60,4 +60,4 @@ To avoid rebuilding the top-level package whenever irrelevant files change, you
}
```

[`cleanSourceWith`]: https://github.com/srid/haskell-flake/blob/67db46409b4c2e92abf27ddde7c75ae310d4068c/nix/build-haskell-package.nix#L15-L24
[`cleanSourceWith`]: https://github.com/srid/haskell-flake/blob/67db46409b4c2e92abf27ddde7c75ae310d4068c/nix/build-haskell-package.nix#L15-L24

0 comments on commit 7cdc002

Please sign in to comment.