| 30 Jan 2025 |
anstylian | * in general, can I get the package version, from Cargo.toml? (not related to the previews question) | 09:48:43 |
Alyssa Ross | Does anybody actually use custom rust.platform? It doesn't look like the custom sysroot ever gets its Cargo hash bumped
| 10:12:55 |
FliegendeWurst | In reply to @angelos_:matrix.org in general, can I get the package version, from Cargo.toml? (not related to the previews question) Yes, that file should have a version = "..." line | 10:34:34 |
FliegendeWurst | If you want the version in Nix code you need to import the toml and access package.version | 10:35:15 |
anstylian | FliegendeWurst: do you have an example of that? | 11:43:21 |
Robert Rose | Liike this:
file = builtins.readFile ./Cargo.toml;
cargo = builtins.fromTOML file;
version = cargo.package.version;
or use inherit (cargo.package) version;
| 11:53:30 |
| 31 Jan 2025 |
| quin joined the room. | 13:26:43 |
| Dirk Van Haerenborgh changed their display name from Dirk Van Haerenborgh to Dirk Van Haerenborgh @ FOSDEM. | 13:48:00 |
| Jonas Chevalier changed their display name from Jonas Chevalier to Jonas Chevalier (FOSDEM). | 19:12:23 |
| quin changed their display name from worm_with_boots to quin. | 23:00:08 |
| 1 Feb 2025 |
Ilan Joselevich (Kranzes) | I'm going to PR a new rust package and I just wanted to know if I should be using useFetchCargoVendor? | 17:11:49 |
Ilan Joselevich (Kranzes) | cc. Alyssa Ross | 17:11:54 |
Alyssa Ross | yes | 17:12:26 |
Ilan Joselevich (Kranzes) | even if there are no git deps? | 17:12:34 |
Alyssa Ross | fetchCargoTarball will be deprecated this staging cycle | 17:12:40 |
Alyssa Ross | it's no longer reproducible even without git deps as of Cargo 1.84 | 17:12:57 |
Ilan Joselevich (Kranzes) | wonderful | 17:13:04 |
Alyssa Ross | so it's time for it to go | 17:13:14 |
Ilan Joselevich (Kranzes) | are there any other benefits to useFetchCargoVendor? | 17:13:40 |
Alyssa Ross | it will never change output hash due to a rust update, and we can allow git deps with it | 17:15:44 |
Alyssa Ross | i think that's it | 17:15:50 |
Ilan Joselevich (Kranzes) | not faster or anything? | 17:15:55 |
Alyssa Ross | it's actually currently slower | 17:16:04 |
Alyssa Ross | but that's already been improved in staging | 17:16:22 |
| 2 Feb 2025 |
| PopeRigby changed their display name from Pope_Rigby to PopeRigby. | 04:14:29 |
raitobezarius | @qyliss:fairydust.space: hmm do you have a suggestion to reduce the dependencies for useFetchCargoVendor ? (Aka the Nix dependency) | 10:24:47 |
Alyssa Ross | Implement nix-prefetch-git without nix | 10:25:48 |
Alyssa Ross | but there's already allowGitDependencies | 10:26:00 |
Alyssa Ross | the nix dependency is optional | 10:26:12 |
Toma | Someone could reimplement fetchCargoVendor in a language, like C, but that would only get rid of the python dep.
Reducing nix-prefetch-git's deps is the optimal solution. | 13:14:26 |