!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

675 Members
Rust153 Servers

Load older messages


SenderMessageTime
10 Dec 2021
@brendanzab:matrix.orgbrendanzab Hey, just wondering if it is a good idea to use something like https://github.com/hercules-ci/gitignore.nix in a flake for my Rust package? I'm using https://github.com/nix-community/naersk/ to define my default package, but I'm not sure if that handles stuff like ignoring the target directory. 🤔 06:49:29
@mic92:nixos.devMic92If you switch to flake-based infrastructure than you can gitignore support for free.07:02:51
@brendanzab:matrix.orgbrendanzaboh cool07:16:28
@brendanzab:matrix.orgbrendanzabweird that hercules-ci/gitignore.nix mentions flakes in the README - is that possibly out of date?07:17:22
@mic92:nixos.devMic92brendanzab: well. it says that flakes uses gitignore but there might be an edge case where this is still useful.08:22:19
@brendanzab:matrix.orgbrendanzabahh rereading that yeah… gotcha08:30:42
12 Dec 2021
@linj:matrix.orglinj left the room.21:44:07
13 Dec 2021
@ldesgoui:matrix.orgldesgoui joined the room.00:21:58
@wardmuylaert:matrix.orgward joined the room.08:53:10
@lourkeur:nixos.devlourkeur (nix btw) changed their display name from lourkeur (Nix OwO) to lourkeur (nix btw).17:13:05
19 Dec 2021
@psibi:matrix.orgpsibi joined the room.14:47:57
@colemickens:matrix.orgcolemickens joined the room.22:53:19
22 Dec 2021
@bernardo:matrix.parity.iobernardo ooo (sick) joined the room.22:26:59
23 Dec 2021
@florian:web3.foundationFlorian | W3F joined the room.13:53:28
@florian:web3.foundationFlorian | 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:matrix.parity.iobernardo ooo (sick) changed their display name from bernardo to bernardo ooo.20:57:34
27 Dec 2021
@jcie74:matrix.orgpie_ joined the room.06:44:43
29 Dec 2021
@zhaofeng:zhaofeng.liZhaofeng Li joined the room.03:59:59
30 Dec 2021
@ereslibre:matrix.orgereslibre joined the room.10:22:15
31 Dec 2021
@mexisme:matrix.orgmexisme joined the room.23:11:08
5 Jan 2022
@Sweenu:matrix.orgSweenu joined the room.12:07:12
11 Jan 2022
@bernardo:matrix.parity.iobernardo ooo (sick) changed their display name from bernardo ooo to bernardo.21:23:07
18 Jan 2022
@rajivr:matrix.orgrajivr joined the room.03:36:00
20 Jan 2022
@andi:kack.itandi- left the room.00:12:37
22 Jan 2022
@bernardo:matrix.parity.iobernardo 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:matrix.parity.iobernardo 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
@mikroskeem:d0.eeMark LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; 20:12:17
@bernardo:matrix.parity.iobernardo 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:zhaofeng.liZhaofeng 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
@mikroskeem:d0.eeMark^20:16:10

Show newer messages


Back to Room ListRoom Version: 6