| 16 Oct 2022 |
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 |
aktaboot | Feature attributes are only allowed on the nightly release channel. Stable or
beta compilers will not comply.
Erroneous code example:
`
#![feature(lang_items)] // error: `#![feature]` may not be used on the
// stable release channel
`
If you need the feature, make sure to use a nightly release of the compiler
(but be warned that the feature may be removed or altered in the future).
(END)
| 10:31:20 |
aktaboot | any rustc-nightly builds ? 🤔 | 10:31:47 |
Linux Hackerman | not in nixpkgs | 10:31:53 |
Linux Hackerman | there are a couple of approaches to getting nightly builds, one of them is https://github.com/nix-community/fenix | 10:32:19 |
aktaboot | thanks, will look into it | 10:32:49 |
aktaboot | does that mean that you can't put a package in nixpkgs that can only be built with the nightly rustc ? | 10:33:26 |
Linux Hackerman | I think so | 10:34:01 |
aktaboot | yeah since hydra won't be able to build it ig | 10:34:21 |
aktaboot | thanks! | 10:34:30 |
aktaboot | 🦀 | 10:36:20 |
figsoda | In reply to @aktaboot:tchncs.de does that mean that you can't put a package in nixpkgs that can only be built with the nightly rustc ? kind of a hack but sometimes RUSTC_BOOTSTRAP=1 works | 16:00:57 |