You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: development.markdown
+44-11Lines changed: 44 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ We use 0.5.0.1 of Ormolu and CI will add an extra commit, if needed, to autoform
22
22
23
23
Also note that you can always wrap a comment around some code you don't want Ormolu to touch, using:
24
24
25
-
```
25
+
```haskell
26
26
{- ORMOLU_DISABLE -}
27
27
dontFormatMe =do blah
28
28
blah
@@ -96,11 +96,13 @@ This codebase uses symlinks as a workaround for some inconveniences in the `here
96
96
97
97
First you'll need to enable "Developer Mode" in your Windows settings.
98
98
99
-
See https://consumer.huawei.com/en/support/content/en-us15594140/
99
+
> See https://consumer.huawei.com/en/support/content/en-us15594140/
100
100
101
101
Then you'll need to enable symlink support in your `git` configuration, e.g.
102
102
103
-
`git config core.symlinks true`
103
+
```shell
104
+
git config core.symlinks true
105
+
```
104
106
105
107
And then ask `git` to fix up your symlinks with `git checkout .`
106
108
@@ -113,10 +115,41 @@ Stack doesn't work deterministically in Windows due to mismatched expectations a
113
115
114
116
## Building with Nix
115
117
118
+
__NB__: It is important that the Unison Nix cache is trusted when building, otherwise you will likely end up building hundreds of packages, including GHC itself.
119
+
120
+
The recommended way to do this is to add the public key and URL for the cache to your system’s Nix configuration. /etc/nix/nix.conf should have lines similar to
It is _not_ recommended to add your user to `trusted-users`. This _can_ make enabling flake configurations simpler (like the Unison Nix cache here), but [it is equivalent to giving that user root access (without need for sudo)](https://nix.dev/manual/nix/2.23/command-ref/conf-file.html#conf-trusted-users).
148
+
116
149
## Building package components with nix
117
150
118
151
### Build the unison executable
119
-
```
152
+
```shell
120
153
nix build
121
154
```
122
155
@@ -125,7 +158,7 @@ This is specified with the normal
0 commit comments