Repository navigation
Commit a570a6f
authored
fix(nix): vendor Cargo deps without import-from-derivation (ccusage#1918)
* fix(nix): vendor Cargo deps without import-from-derivation
buildDepsOnly receives an explicit dummySrc, so Crane vendors the Cargo
dependencies from that mkDummySrc derivation. Reading its Cargo.lock
during evaluation is import-from-derivation: every evaluation of the
package, the dev shell, or the checks had to build that derivation
first, and it fails outright with allow-import-from-derivation = false
or with evaluators that never build during evaluation, such as iets.
Vendor once from the filtered source in commonArgs instead. The vendor
directory only depends on Cargo.lock, so the ccusage drvPath is
unchanged and nothing rebuilds.
* chore(nix): shorten the Cargo vendoring comment1 parent 58ec8f1 commit a570a6f
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
0 commit comments