| 23 Dec 2021 |
| Florian | W3F joined the room. | 13:53:28 |
Florian | W3F | Hi guys. I have been working on a patch for naersk and looking for some feedback. It is based on #167 and uses the additional information provided to only include crates in git-deps that are actually required. | 13:58:11 |
| 26 Dec 2021 |
| bernardo ooo (sick) changed their display name from bernardo to bernardo ooo. | 20:57:34 |
| 27 Dec 2021 |
| pie_ joined the room. | 06:44:43 |
| 29 Dec 2021 |
| Zhaofeng Li joined the room. | 03:59:59 |
| 30 Dec 2021 |
| ereslibre joined the room. | 10:22:15 |
| 31 Dec 2021 |
| mexisme joined the room. | 23:11:08 |
| 5 Jan 2022 |
| Sweenu joined the room. | 12:07:12 |
| 11 Jan 2022 |
| bernardo ooo (sick) changed their display name from bernardo ooo to bernardo. | 21:23:07 |
| 18 Jan 2022 |
| rajivr joined the room. | 03:36:00 |
| 20 Jan 2022 |
| andi- left the room. | 00:12:37 |
| 22 Jan 2022 |
bernardo ooo (sick) | NixOS beginner here. I need to build a Rust crate (https://github.com/paritytech/substrate-contracts-node) that depends on Clang.
I keep running into:
I've tried adding some packages to Home Manager (libclang, llvmPackages.libclang, clang), without success.
I also did a brief google search but I'm quite confused about how to go about this.
| 20:08:04 |
bernardo ooo (sick) | * NixOS beginner here. I need to build a Rust crate (https://github.com/paritytech/substrate-contracts-node) that depends on Clang.
I keep running into:
thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-*.so', 'libclang.so.*', 'libclang-*.so.*'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', /home/bear/.cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.59.2/src/lib.rs:2144:31
I've tried adding some packages to Home Manager (libclang, llvmPackages.libclang, clang), without success.
I also did a brief google search but I'm quite confused about how to go about this.
| 20:08:26 |
Mark | LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; | 20:12:17 |
bernardo ooo (sick) | In reply to @mikroskeem:d0.ee LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; I saw this suggestion during my Google search, but I couldn't figure out which file to add this line to. I tried adding it to the same file where my Home Manager definitions are with no success. | 20:13:59 |
Zhaofeng Li | In reply to @bernardo:matrix.parity.io I saw this suggestion during my Google search, but I couldn't figure out which file to add this line to. I tried adding it to the same file where my Home Manager definitions are with no success. It's best to have a separate shell environment for each project, and you can add this in your mkShell | 20:15:26 |
Mark | ^ | 20:16:10 |
bernardo ooo (sick) | hmm ok so I should write a shell.nix file for this specific project? | 20:16:21 |
Mark | yes, or flake.nix preferably | 20:16:31 |
Mark | & echo use flake > .envrc | 20:16:41 |
bernardo ooo (sick) | gotcha... thanks guys! | 20:17:04 |
Mark | https://github.com/ZentriaMC/neard-nix/blob/master/default.nix | 20:17:15 |
Mark | and of course flake.nix there | 20:20:51 |
| 23 Jan 2022 |
bernardo ooo (sick) | I'm using this shell.nix: https://github.com/paritytech/substrate/blob/master/shell.nix
applied at the root of this project: https://github.com/paritytech/substrate-contracts-node
I executed $ nix-shell then $ cargo build --release
and now I'm running into:
error[E0658]: use of unstable library feature 'proc_macro_is_available'
I'm guessing there's something missing on the shell.nix file?
| 01:31:47 |
Zhaofeng Li | What does rustc --version show? | 01:33:19 |
bernardo ooo (sick) | In reply to @zhaofeng:zhaofeng.li What does rustc --version show? rustc 1.57.0-nightly (497ee321a 2021-09-09) | 01:33:38 |
bernardo ooo (sick) | In reply to @zhaofeng:zhaofeng.li What does rustc --version show? * rustc 1.57.0-nightly (497ee321a 2021-09-09) | 01:34:27 |
Zhaofeng Li | Hmm, that feature should exist in that version of nightly (it was removed a month later, which should cause it to complain that the feature is non-existent). Where is that in the code? | 01:36:15 |
bernardo ooo (sick) | In reply to @zhaofeng:zhaofeng.li Hmm, that feature should exist in that version of nightly (it was removed a month later, which should cause it to complain that the feature is non-existent). Where is that in the code? error[E0658]: use of unstable library feature 'proc_macro_is_available'
--> /home/bear/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.36/src/detection.rs:28:21
|
28 | let available = proc_macro::is_available();
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #71436 <https://github.com/rust-lang/rust/issues/71436> for more information
= help: add `#![feature(proc_macro_is_available)]` to the crate attributes to enable
| 01:37:15 |
Zhaofeng Li | Ok, try a newer nightly version where this has already stabilized | 01:39:16 |