4 Sep 2024 |
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 |
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? how can I fix this without the path:/// workaround? | 11:54:14 |
K900 | Add the file to git | 11:54:36 |
olk | this will probably be the most painless solution, yeah. Alyssa Ross can you give any tips on how to make crane use cached mingwW64 openssl from hydra instead of building it myself? | 11:56:27 |
K900 | OpenSSL the C library, not the Rust crate | 11:56:48 |
K900 | The Rust crate is not precompiled | 11:56:52 |
olk | sorry, my brain is a bit fried after all those hours trying to make this compile | 11:58:34 |
| antifuchs left the room. | 13:59:01 |