Commit f36a6aa
committed
Add gitMinimal to all shell environments
Cabal needs git on PATH for source-repository-package stanzas in
cabal.project files. Without it, builds fail with Cabal-6666.
This was observed in IntersectMBO/cardano-db-sync#2085 where 6 out of 9
failing CI jobs reported "The program 'git' is required but it could not
be found."
Add gitMinimal (146 MiB closure) instead of git (1.5 GiB) to all four
shell definitions — the same package nixpkgs uses for fetchgit. The 10x
smaller closure matters for container images built from devx shells.
- dynamic.nix: add gitMinimal to buildInputs, drop redundant git from
withGHCTooling (gitMinimal now covers it)
- static.nix: add gitMinimal to nativeBuildInputs
- cross-js.nix: add gitMinimal to nativeBuildInputs
- cross-windows.nix: add pkgsBuildBuild.gitMinimal to nativeBuildInputs1 parent a621faa commit f36a6aa
4 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
0 commit comments