Commit 906fbe3
committed
fix: remove unnecessary modifiedSrc derivation to resolve IFD cross-compilation issues
The root issue was that the buildPgrxExtension was creating a modifiedSrc derivation
to copy external Cargo.lock files for crane. This derivation was being created for
each target platform during evaluation, causing system conflicts when evaluating
aarch64-darwin packages on x86_64-linux systems.
The solution is to remove the modifiedSrc logic entirely and rely on the existing
postPatch mechanism in the extensions, which already handles external lockfiles
by creating symlinks. Crane works perfectly with this approach and doesn't need
the lockfiles copied during evaluation.
This resolves the IFD (Import From Derivation) issues while maintaining crane's
incremental build benefits and cross-compilation support.1 parent 7e3bdbf commit 906fbe3
1 file changed
+7
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 146 | + | |
152 | 147 | | |
153 | 148 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
178 | 153 | | |
179 | 154 | | |
180 | 155 | | |
| |||
183 | 158 | | |
184 | 159 | | |
185 | 160 | | |
186 | | - | |
| 161 | + | |
187 | 162 | | |
188 | 163 | | |
189 | 164 | | |
| |||
212 | 187 | | |
213 | 188 | | |
214 | 189 | | |
215 | | - | |
| 190 | + | |
216 | 191 | | |
217 | 192 | | |
218 | 193 | | |
| |||
0 commit comments