!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

473 Members
Rust115 Servers

Load older messages


SenderMessageTime
4 Sep 2024
@justastream:matrix.orgStreamIf anyone else here is using RustRover please do let me know!11:38:07
@antifuchs:conduit.asf.computerantifuchs ⚡️ joined the room.18:08:09
@antifuchs:asf.computerantifuchs changed their display name from antifuchs to antifuchs ⚡️.18:49:35
@antifuchs:asf.computerantifuchs changed their display name from antifuchs ⚡️ to antifuchs.19:01:46
5 Sep 2024
@k900:0upti.meK900 @figsoda poke re: https://github.com/nix-community/fenix/pull/163 08:46:57
@k1gen:matrix.orgolk joined the room.10:17:12
@k1gen:matrix.orgolk 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
@k1gen:matrix.orgolk I needed to add perl to nativeBuildInputs... 11:35:17
@k1gen:matrix.orgolk build fails on include_bytes! being called on a .gitignored file, any way to fix this without git adding the file? 11:45:00
@qyliss:fairydust.spaceAlyssa 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
@qyliss:fairydust.spaceAlyssa 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
@k1gen:matrix.orgolkI 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 host11:48:13
@k900:0upti.meK900Uhh11:48:23
@k900:0upti.meK900You should have started there yes11:48:26
@k900:0upti.meK900Getting openssl to cross-compile will be ... probably not trivial11:48:37
@k900:0upti.meK900Do you specifically need OpenSSL or can you use schannel or something?11:48:47
@k1gen:matrix.orgolk
In reply to @k1gen:matrix.org
build fails on include_bytes! being called on a .gitignored file, any way to fix this without git adding the file?
it already cross-compiled, I'm now on this ^
11:49:03
@qyliss:fairydust.spaceAlyssa 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:0upti.meK900 If you're using flakes, use nix build path:///path/to/your/flake 11:49:36
@k900:0upti.meK900That will disable the git filtering11:49:38
@qyliss:fairydust.spaceAlyssa RossHydra even builds it cross compiled to mingwW6411:49:48
@k1gen:matrix.orgolkthis is what I didn't get to work11:50:56
@k1gen:matrix.orgolk
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
@k1gen:matrix.orgolk
In reply to @k1gen:matrix.org
build fails on include_bytes! being called on a .gitignored file, any way to fix this without git adding the file?
how can I fix this without the path:/// workaround?
11:54:14
@k900:0upti.meK900Add the file to git11:54:36
@k1gen:matrix.orgolk 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:0upti.meK900OpenSSL the C library, not the Rust crate11:56:48
@k900:0upti.meK900The Rust crate is not precompiled11:56:52
@k1gen:matrix.orgolksorry, my brain is a bit fried after all those hours trying to make this compile11:58:34
@antifuchs:asf.computerantifuchs left the room.13:59:01

Show newer messages


Back to Room ListRoom Version: 6