4 Sep 2024 |
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 use nix in my rust project directory I get the 'no such file or directory as default.nix'.
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 |
olk | o/ how can I add openssl to -deps buildInputs ? is this the reason the build fails? https://paste.rs/ZXtjM.txt here's the flake: https://paste.rs/ibDPd.txt | 10:49:19 |
olk | I needed to add perl to nativeBuildInputs ... | 11:35:17 |
olk | build fails on include_bytes! being called on a .gitignore d file, any way to fix this without git add ing the file? | 11:45:00 |
Alyssa Ross | You probably want to set OPENSSL_NO_VENDOR rather than adding perl, because perl means it's building its own OpenSSL rather than using Nixpkgs'
| 11:46:02 |
Alyssa Ross | (and then you need pkg-config in nativeBuildInputs , and then openssl , darwin.apple_sdk.frameworks.Security , and darwin.apple_sdk.frameworks.SystemConfiguration to buildInputs )
| 11:46:58 |
olk | I just spent a day trying to make it do anything, please help me get it working first, then I'll think of reproducibility. also, I'm cross-compiling to Windows on a Linux host | 11:48:13 |
K900 | Uhh | 11:48:23 |
K900 | You should have started there yes | 11:48:26 |
K900 | Getting openssl to cross-compile will be ... probably not trivial | 11:48:37 |