Commit adc2e66
authored
Build nonReinstallablePkgs from pre-existing packages in plan.json (#2207)
Haskell.nix now respects the `pre-existing` packages selected
by the cabal planner. The selection made by the planner
is used to set `nonReinstallablePkgs`.
Instead setting `nonReinstallablePkgs` and `reinstallableLibGhc`
haskell.nix projects should add `constraints` to the cabal project.
For instance to force the use of the `pre-exising` `text`
package add:
```
constraints: text installed
```
To make sure `text` is reinstalled use:
```
constraints: text source
```
The `pre-existing` `ghc` will now be used by default as
that is what `cabal` will choose (haskell.nix used to choose
`reinstallableLibGhc=true` by default).
To allow cabal to choose reinstalling `ghc` add:
```
allow-boot-library-installs: True
```
To force cabal to choose reinstalling:
```
constraints: ghc source
allow-boot-library-installs: True
```
It may also need `allow-newer: ghc:Cabal`1 parent de29feb commit adc2e66
File tree
464 files changed
+12758
-13164
lines changed- builder
- compiler/ghc
- lib
- materialized
- alex-3.2.7.1
- ghc-boot-packages-nix
- ghc8107-ghcjs
- ghc962-ghcjs
- ghc962
- ghc963-ghcjs
- ghc964-ghcjs
- ghc965-ghcjs
- ghc981-ghcjs
- ghc982-ghcjs
- ghc-extra-projects
- cross
- ghc8107
- .plan.nix
- cabal-files
- ghc902
- .plan.nix
- cabal-files
- ghc924
- .plan.nix
- cabal-files
- ghc925
- .plan.nix
- cabal-files
- ghc926
- .plan.nix
- cabal-files
- ghc927
- .plan.nix
- cabal-files
- ghc928
- .plan.nix
- cabal-files
- default
- ghc8107
- ghc901
- ghc902
- ghc924
- ghc925
- ghc926
- ghc927
- ghc928
- windows
- ghc8107
- .plan.nix
- cabal-files
- ghc901
- .plan.nix
- cabal-files
- ghc902
- .plan.nix
- cabal-files
- ghc924
- .plan.nix
- cabal-files
- ghc925
- .plan.nix
- cabal-files
- ghc926
- .plan.nix
- cabal-files
- ghc927
- .plan.nix
- cabal-files
- ghc928
- .plan.nix
- cabal-files
- ghc962
- hadrian-ghc947/hadrian
- .plan.nix
- cabal-files
- hadrian-ghc94/hadrian
- .plan.nix
- cabal-files
- hadrian-ghc964/hadrian
- .plan.nix
- cabal-files
- hadrian-ghc96/hadrian
- .plan.nix
- cabal-files
- hadrian-ghc981/hadrian
- .plan.nix
- cabal-files
- hadrian-ghc98/hadrian
- .plan.nix
- cabal-files
- hadrian-ghc99/hadrian
- .plan.nix
- cabal-files
- ghcjs
- alex/ghc8107
- cabal/ghc8107
- ghc8107
- happy/ghc8107
- happy-1.20.0
- iserv-proxy
- cross
- ghc947
- .plan.nix
- cabal-files
- ghc948
- .plan.nix
- cabal-files
- ghc961
- .plan.nix
- cabal-files
- ghc962
- .plan.nix
- cabal-files
- ghc963
- ghc964
- ghc965
- ghc981
- ghc982
- default
- ghc947
- ghc948
- ghc961
- ghc962
- ghc963
- ghc964
- ghc965
- ghc981
- ghc982
- windows
- ghc947
- .plan.nix
- cabal-files
- ghc948
- .plan.nix
- cabal-files
- ghc961
- .plan.nix
- cabal-files
- ghc962
- .plan.nix
- cabal-files
- ghc963
- ghc964
- ghc965
- ghc981
- ghc982
- modules
- nix-tools
- nix-tools/plan2nix
- Plan2Nix
- overlays
- test/js-template-haskell
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
464 files changed
+12758
-13164
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
4 | 45 | | |
5 | 46 | | |
6 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
263 | 265 | | |
264 | 266 | | |
| 267 | + | |
| 268 | + | |
265 | 269 | | |
266 | 270 | | |
| 271 | + | |
| 272 | + | |
267 | 273 | | |
268 | 274 | | |
269 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
367 | 366 | | |
368 | 367 | | |
369 | 368 | | |
370 | 369 | | |
371 | 370 | | |
372 | 371 | | |
373 | 372 | | |
374 | | - | |
375 | 373 | | |
376 | | - | |
377 | | - | |
378 | 374 | | |
379 | 375 | | |
380 | 376 | | |
381 | | - | |
382 | 377 | | |
383 | | - | |
384 | | - | |
385 | 378 | | |
386 | | - | |
387 | 379 | | |
388 | | - | |
389 | | - | |
390 | 380 | | |
391 | | - | |
392 | 381 | | |
393 | | - | |
394 | 382 | | |
395 | 383 | | |
396 | 384 | | |
397 | 385 | | |
398 | | - | |
399 | | - | |
400 | 386 | | |
401 | | - | |
402 | 387 | | |
403 | 388 | | |
404 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
405 | 406 | | |
| 407 | + | |
| 408 | + | |
406 | 409 | | |
407 | 410 | | |
408 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
344 | 356 | | |
345 | 357 | | |
346 | 358 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments