| 13 Oct 2022 |
| Charles ⚡️ joined the room. | 03:09:06 |
Charles ⚡️ | 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 ⚡️ joined the room. | 16:36:07 |
shanesveller | fetchGit itself would still need to receive a checksum for purity, wouldn't it? | 19:07:40 |
Charles ⚡️ | i thought not requiring a checksum and relying on the commit hash was the point of fetchGit | 19:10:11 |
Charles ⚡️ | https://nixos.org/manual/nix/stable/language/builtins.html#builtins-fetchGit | 19:10:12 |
| 15 Oct 2022 |
| underpantsgnome! changed their display name from underpantsgnome to underpantsgnome!. | 00:31:14 |
| 16 Oct 2022 |
Charles ⚡️ | is it harmful to always use stdenv = pkgs.clangStdenv even if you don't use bindgen? | 00:15:13 |
Charles ⚡️ | 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 do | 00:15:55 |
Charles ⚡️ | so i'm thinking it could be beneficial to just always use clangStdenv by default from a usability standpoint | 00:16:28 |
Charles ⚡️ | 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 |
Alyssa Ross | It could cause problems if C++ is used by any of your deps | 00:17:37 |
Alyssa Ross | I think | 00:17:43 |
Alyssa Ross | due to ABI incompatibility | 00:17:47 |
Charles ⚡️ | oh interesting | 00:18:00 |
Alyssa Ross | mixing C compilers is fine, but not C++ compilers | 00:18:05 |
Charles ⚡️ | 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 ⚡️ | maybe that's the actual right thing to do | 00:19:04 |
Charles ⚡️ | i suppose i could test this | 00:19:22 |
Alyssa Ross | I don't think so, due to peculiarities of how it looks for libclang | 00:19:33 |
Charles ⚡️ | hmm | 00:20:19 |
Alyssa Ross | rustPlatform.bindgenHook looks like it does what you want though | 00:21:27 |
Alyssa Ross | You could just always depend on that | 00:22:16 |
Charles ⚡️ |  Download image.png | 00:24:50 |
Charles ⚡️ | i like the empty examples section | 00:24:53 |
Charles ⚡️ | oh interesting you literally just add rustPlatform.bindgenHook to nativeBuildInputs | 00:30:22 |
Alyssa Ross | yep | 00:34:06 |
Charles ⚡️ | thank you for pointing that out to me, i somehow never heard of it until just now | 01:15:44 |
| 17 Oct 2022 |
| aktaboot joined the room. | 07:41:02 |
aktaboot | 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 |