Sender | Message | Time |
---|---|---|
4 Sep 2024 | ||
K900 | But also, generally, you don't actually want a system-wide install | 09:58:54 |
Stream | Oh, forgot to add, my "rustup environment.systemPackages" doesn't work because:
| 10:00:14 |
K900 | That's not a rustup issue | 10:00:23 |
K900 | That's basically the reason you don't want a system-wide install | 10:00:34 |
K900 | It's trying to find openssl, which is a C library | 10:00:41 |
K900 | Which is generally not something Nix is designed to provide access to system-wdie | 10:00:53 |
K900 | * Which is generally not something Nix is designed to provide access to system-wide | 10:00:55 |
Stream | In order to satisfy the requirements, I added all the deps system wide that I did to get my shell.nix to work:
| 10:02:31 |
K900 | Yeah, the problem is that it will not set up the environment correctly | 10:02:44 |
K900 | For those things to actually be findable | 10:02:48 |
K900 | Because adding things to environment.systemPackages and adding them to a dev shell's inputs doesn't actually do the same thing | 10:03:03 |
Stream | I'm open to a non-system wide install but so far all I've managed to get working is shell.nix and I can't get that to work with RustRover | 10:03:05 |
K900 | They are subtly different | 10:03:09 |
K900 | You probably want to use direnv for IDE integration | 10:03:34 |
K900 | See https://direnv.net/ | 10:03:40 |
K900 | And https://plugins.jetbrains.com/plugin/15285-direnv-integration for JetBrains stuff specifically | 10:04:21 |
K900 | Then you can just put use nix in your .envrc | 10:04:29 |
K900 | And the IDE should inherit those settings | 10:04:35 |
K900 | Though to be honest I'm not sure how well it works with RustRover | 10:05:09 |
K900 | I usually just use VSCode with rust-analyzer for Rust stuff | 10:05:19 |
Stream | Okay i'm going to follow your suggestion and try and get my shell.nix to work with my IDE | 10:12:21 |
Stream | Hey K900 , quick Q. When I try to I have a ~/shell.nix file. Is there some way to use that? | 10:54:10 |
K900 | Try use nix ~/shell.nix | 10:55:05 |
Stream | Thanks for the help! I don't have things as convenient as I want them but I've finally got my IDE to recognise Rust. I can't seem to get it to work directly from .envrc but if I run nix-shell then rust-rover my IDE seems to work 🙏 | 11:18:26 |
Stream | If anyone else here is using RustRover please do let me know! | 11:38:07 |
antifuchs ⚡️ joined the room. | 18:08:09 | |
antifuchs changed their display name from antifuchs to antifuchs ⚡️. | 18:49:35 | |
antifuchs changed their display name from antifuchs ⚡️ to antifuchs. | 19:01:46 | |
5 Sep 2024 | ||
K900 | @figsoda poke re: https://github.com/nix-community/fenix/pull/163 | 08:46:57 |
olk joined the room. | 10:17:12 |