Nix Rust | 693 Members | |
| Rust | 158 Servers |
| Sender | Message | Time |
|---|---|---|
| 18 Jan 2022 | ||
| 03:36:00 | ||
| 20 Jan 2022 | ||
| 00:12:37 | ||
| 22 Jan 2022 | ||
| 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 ( I also did a brief google search but I'm quite confused about how to go about this. | 20:08:04 | |
| * 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 ( I also did a brief google search but I'm quite confused about how to go about this. | 20:08:26 | |
| LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; | 20:12:17 | |
In reply to @mikroskeem:d0.eeI 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 | |
In reply to @bernardo:matrix.parity.ioIt's best to have a separate shell environment for each project, and you can add this in your mkShell | 20:15:26 | |
| ^ | 20:16:10 | |
hmm ok so I should write a shell.nix file for this specific project? | 20:16:21 | |
| yes, or flake.nix preferably | 20:16:31 | |
| & echo use flake > .envrc | 20:16:41 | |
| gotcha... thanks guys! | 20:17:04 | |
| https://github.com/ZentriaMC/neard-nix/blob/master/default.nix | 20:17:15 | |
| and of course flake.nix there | 20:20:51 | |
| 23 Jan 2022 | ||
| I'm using this applied at the root of this project: https://github.com/paritytech/substrate-contracts-node I executed and now I'm running into:
I'm guessing there's something missing on the | 01:31:47 | |
What does rustc --version show? | 01:33:19 | |
In reply to @zhaofeng:zhaofeng.lirustc 1.57.0-nightly (497ee321a 2021-09-09) | 01:33:38 | |
In reply to @zhaofeng:zhaofeng.li* rustc 1.57.0-nightly (497ee321a 2021-09-09) | 01:34:27 | |
| 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 | |
In reply to @zhaofeng:zhaofeng.li
| 01:37:15 | |
| Ok, try a newer nightly version where this has already stabilized | 01:39:16 | |
In reply to @zhaofeng:zhaofeng.liswitched the date to 2021-12-30 and it worked! thanks!! | 02:20:16 | |
| now I'm trying to build https://github.com/paritytech/canvas with the same
pretty confusing, since I do have plenty of space on my disk 🤔 | 14:38:43 | |
In reply to @bernardo:matrix.parity.io/tmp mounted as tmpfs? | 14:53:41 | |
| increase its size | 14:53:50 | |
In reply to @mikroskeem:d0.eeI did $ sudo mount -o remount,size=30G /tmp, which is confirmed by df -h... but the problem remains :( | 15:18:26 | |
| unsure atm | 15:19:08 | |
| ok I think I figured it out... after seeing this error message:
so I ran:
| 15:34:20 | |
| aha | 15:41:46 | |
| 27 Jan 2022 | ||
| 08:55:37 | ||