4 Sep 2024 |
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 |
K900 | Do you specifically need OpenSSL or can you use schannel or something? | 11:48:47 |
olk | In reply to @k1gen:matrix.org build fails on include_bytes! being called on a .gitignore d file, any way to fix this without git add ing the file? it already cross-compiled, I'm now on this ^ | 11:49:03 |
Alyssa Ross | In reply to @k900:0upti.me Getting openssl to cross-compile will be ... probably not trivial there's stuff about windows in our OpenSSL expression | 11:49:21 |
K900 | If you're using flakes, use nix build path:///path/to/your/flake | 11:49:36 |
K900 | That will disable the git filtering | 11:49:38 |
Alyssa Ross | Hydra even builds it cross compiled to mingwW64 | 11:49:48 |
olk | this is what I didn't get to work | 11:50:56 |
olk | In reply to @k900:0upti.me If you're using flakes, use nix build path:///path/to/your/flake thank you! it finally built succesfully | 11:52:22 |