Commit d63554d
committed
Rewrite shell.nix to use shellFor and callCabal2nix
The old `shell.nix` manually listed the dependencies required by the shell. Worse, this manual list was out of sync with the actual dependencies needed by `gerber` and `gerber-diagrams`; e.g., it listed `diagrams` as a dependency, which was failing because of an upper bound in one of `diagrams-contrib`'s dependencies, but `gerber-diagrams` doesn't even need `diagrams`, it only needs `diagrams-lib` and `diagrams-cairo`. Using `callCabal2nix` and `shellFor` will automatically generate a shell with the exact dependencies specified by in the cabal files.1 parent c1ef027 commit d63554d
1 file changed
+13
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 10 | + | |
21 | 11 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
27 | 16 | | |
28 | 17 | | |
29 | 18 | | |
30 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments