Commit 7e3bdbf
committed
fix: resolve crane IFD cross-compilation issues
The issue was that crane's modifiedSrc derivation (which copies external
Cargo.lock files) was being created with the target platform's stdenv,
causing system conflicts during cross-compilation evaluation.
Fixed by:
- Using buildPackages.stdenv for the modifiedSrc derivation so it runs on
the build platform during evaluation
- Adding preferLocalBuild and allowSubstitutes flags to ensure proper IFD handling
- Re-enabling crane for pg_jsonschema to test the fix
This resolves the 'required system not available' errors while maintaining
crane's incremental build benefits for native builds.1 parent 4fd5981 commit 7e3bdbf
File tree
3 files changed
+9
-4
lines changed- nix
- cargo-pgrx
- ext/pg_jsonschema
3 files changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
158 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
162 | 168 | | |
163 | 169 | | |
164 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | 62 | | |
64 | | - | |
| 63 | + | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments