Nix Rust | 680 Members | |
| Rust | 155 Servers |
| Sender | Message | Time |
|---|---|---|
| 9 Feb 2022 | ||
| TBH, loophp/rust-shell is very handy for me and my colleagues to quickly hack with Rust and Idea Ultimate. | 17:46:12 | |
| Well, don't know about fully replacing Naersk, but I just tried it out and my project builds just fine with this instead of Naersk, so I'm going to stick with it at least for the moment :D Thanks again! | 17:54:53 | |
| naersk and rustPlatform.buildRustPackage both work fine, just bit different | 18:24:41 | |
| naersk is similar to carnix, but uses IFD instead of nix codegen iirc - both download crates using nix | 18:25:25 | |
| rustPlatform.buildRustPackage vendors everything into one big tarball | 18:25:47 | |
| if you have many rust projects sharing same dependencies, you could benefit more from naersk | 18:26:19 | |
| but then again storage is somewhat cheap | 18:26:41 | |
If it's out-of-tree code, you can do rustPlatform.buildRustPackage + cargoFile, so you don't need FOds | 18:45:04 | |
the main thing with nixpkgs is that it had restrict-eval, so you can't do something like https://github.com/jonringer/nix-template/blob/4d852a1f72b5a8c0d79b8e6b7d5809c66414c12d/nix/nix-template.nix#L8 | 18:45:52 | |
* the main thing with nixpkgs is that it has restrict-eval, so you can't do something like https://github.com/jonringer/nix-template/blob/4d852a1f72b5a8c0d79b8e6b7d5809c66414c12d/nix/nix-template.nix#L8 | 18:46:09 | |
| 23:51:14 | ||
| 10 Feb 2022 | ||
| 11:33:17 | ||
| Is there any "low barrier of entry" flake template one can utilize to get a flaked rust nix project where
| 12:20:59 | |
| I've been looking at the below, and I feel like they're out of my competency/comfort zone:
| 12:22:40 | |
| x10an14: it's not a template, but I've been hacking on this project and it's been nice, should be easy to adopt. https://github.com/kamadorueda/alejandra/blob/main/flake.nix | 14:54:14 | |
In reply to @tomberek:matrix.org Thanks! I'll take a closer look later today =) This is where I ended up meanwhile after lots of bashing forehead against the dreaded learning curve's wall: https://git.sr.ht/~x10an14/pass-steam/tree/main/item/flake.nix | 14:58:30 | |
| 11 Feb 2022 | ||
Anyone here willing to help me along debugging/figuring out Windows cross-compile? https://paste.sr.ht/~x10an14/1f03145beafb08f682f88b414bf174a7c2491504 I've searched and found some tips at both fenix and naersk, with the respective fixes/suggestions mentioned in my flake.nix to no avail =/ | 14:47:12 | |
| x10an14: i was going to have some office hours this afternoon and also working on getting rust to cross compile something to musl. Haven't done windows yet, but would be good to clarify. | 18:09:08 | |
| x10an14: available? | 22:27:35 | |
In reply to @tomberek:matrix.orgIn an hour or two? Not right now =( Thanks for reaching out though! | 22:28:54 | |
| Are the office hours gonna be updated here (or somewhere else) moving forwards? https://discourse.nixos.org/t/nix-office-hours/11945/45 | 22:29:33 | |
| New format and announcements have been going here: https://discourse.nixos.org/t/general-nix-office-hours/15019 | 22:32:51 | |
In reply to @tomberek:matrix.orgAwesome, thanks! =) I'll hop in once I'm done with what I'm up to right now! | 22:33:38 | |
| 12 Feb 2022 | ||
| 15:02:36 | ||
| 14 Feb 2022 | ||
| 12:52:32 | ||
| 13:34:17 | ||
| 17 Feb 2022 | ||
| 13:56:37 | ||
| 18 Feb 2022 | ||
| 11:29:58 | ||
| 11:55:38 | ||
| 13:08:18 | ||