Sender | Message | Time |
---|---|---|
10 Aug 2024 | ||
emily | like, that doesn't work for Nix, but the functionality is there. | 20:23:01 |
emily | maybe we could just construct Cargo cache directories š | 20:23:15 |
emily | Download image.png | 20:25:00 |
emily | haha, the Discourse forum thread I clicked on also immediately references Nix. we're the only people in the world who want this | 20:26:04 |
emily | anyway, I guess mixing incompatible feature sets does complicate this significantly š« | 20:29:34 |
emily | so the source-based approach is probably better. (but we're still going to need to be careful about constructing lock files for transitive dependency versions, I think.) | 20:29:53 |
11 Aug 2024 | ||
emily | https://github.com/NixOS/nixpkgs/pull/332809 could maybe use a little testing before it goes in if anyone wants to take a look | 09:49:46 |
emily | I'm guessing a fair number of people use rustup on NixOS and we're bumping through like 1.5 years of changes | 09:50:22 |
GaƩtan Lepage | If I have set sourceRoot to some subfolder of the main source tree, but there is a single Cargo.lock file at the root, how should I do ?I tried mv ../Cargo.lock . in postPatch , but the build fails even before | 12:12:01 |
GaƩtan Lepage | | 12:12:20 |
GaƩtan Lepage | Isn't postPatch suppose to happen... after the patchPhase ? | 12:13:44 |
GaƩtan Lepage |
| 12:16:22 |
emily | do you override patchPhase ? | 13:21:59 |
ghpzin | In reply to @glepage:matrix.orgI think buildAndTestSubdir = "server"; with nothing else should work.If it's a workspace lock and you just want to build one crate from it. | 13:22:34 |
ghpzin | In reply to @glepage:matrix.org* I think buildAndTestSubdir = "server"; with nothing else should work.If it's a workspace lock and you just want to build one crate from it. https://github.com/NixOS/nixpkgs/blob/04f4be3e4385d7962347505807a0e55720c414aa/doc/languages-frameworks/rust.section.md?plain=1#L510-L515 | 13:23:43 |