!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

707 Members
Rust159 Servers

Load older messages


SenderMessageTime
13 Oct 2022
@charles:computer.surgeryCharles ⚡️ joined the room.03:09:06
@charles:computer.surgeryCharles ⚡️ is there any reason why buildRustPackage doesn't use builtins.fetchGit for cargo git deps? my understanding is that that would make it so you don't need to specify anything for cargoLock.outputHashes 15:47:15
@benjamin:computer.surgerybenjamin ⚡️ joined the room.16:36:07
@shane:sveller.socialshanesvellerfetchGit itself would still need to receive a checksum for purity, wouldn't it?19:07:40
@charles:computer.surgeryCharles ⚡️i thought not requiring a checksum and relying on the commit hash was the point of fetchGit19:10:11
@charles:computer.surgeryCharles ⚡️https://nixos.org/manual/nix/stable/language/builtins.html#builtins-fetchGit19:10:12
15 Oct 2022
@tinybronca:sibnsk.netunderpantsgnome! changed their display name from underpantsgnome to underpantsgnome!.00:31:14
16 Oct 2022
@charles:computer.surgeryCharles ⚡️ is it harmful to always use stdenv = pkgs.clangStdenv even if you don't use bindgen? 00:15:13
@charles:computer.surgeryCharles ⚡️i ask because i have a project template for nix + rust projects, and including that (and setting the right environment variable to the right thing) is straightforward but only if you know that's a thing you have to do00:15:55
@charles:computer.surgeryCharles ⚡️ so i'm thinking it could be beneficial to just always use clangStdenv by default from a usability standpoint 00:16:28
@charles:computer.surgeryCharles ⚡️i suppose i could also include it but have it be commented by default with a note like "uncomment this if you use bindgen"00:17:14
@qyliss:fairydust.spaceAlyssa RossIt could cause problems if C++ is used by any of your deps00:17:37
@qyliss:fairydust.spaceAlyssa RossI think00:17:43
@qyliss:fairydust.spaceAlyssa Rossdue to ABI incompatibility00:17:47
@charles:computer.surgeryCharles ⚡️oh interesting00:18:00
@qyliss:fairydust.spaceAlyssa Rossmixing C compilers is fine, but not C++ compilers00:18:05
@charles:computer.surgeryCharles ⚡️ what about using the default stdenv and including clang as a buildInput, would that be good enough for what bindgen uses it for? 00:18:56
@charles:computer.surgeryCharles ⚡️maybe that's the actual right thing to do00:19:04
@charles:computer.surgeryCharles ⚡️i suppose i could test this00:19:22
@qyliss:fairydust.spaceAlyssa RossI don't think so, due to peculiarities of how it looks for libclang00:19:33
@charles:computer.surgeryCharles ⚡️hmm00:20:19
@qyliss:fairydust.spaceAlyssa Ross rustPlatform.bindgenHook looks like it does what you want though 00:21:27
@qyliss:fairydust.spaceAlyssa RossYou could just always depend on that00:22:16
@charles:computer.surgeryCharles ⚡️image.png
Download image.png
00:24:50
@charles:computer.surgeryCharles ⚡️i like the empty examples section00:24:53
@charles:computer.surgeryCharles ⚡️ oh interesting you literally just add rustPlatform.bindgenHook to nativeBuildInputs 00:30:22
@qyliss:fairydust.spaceAlyssa Rossyep00:34:06
@charles:computer.surgeryCharles ⚡️thank you for pointing that out to me, i somehow never heard of it until just now01:15:44
17 Oct 2022
@aktaboot:tchncs.deaktaboot joined the room.07:41:02
@aktaboot:tchncs.deaktaboot

how do you usually go about solving that :

error[E0554]: `#![feature]` may not be used on the stable release channel

I understand that I have to use the nightly compiler, but I could not find it 👀

07:57:57

Show newer messages


Back to Room ListRoom Version: 6