Sender | Message | Time |
---|---|---|
5 Dec 2024 | ||
There is a rust package that added the following flag: "-Clink-arg=-fuse-ld=lld" .At first, the nix build was failing because it couldn't find ld . I added lld to nativeBuildInputs and the built went fine.However, the patching is not working anymore. When I run ldd on the final binary, it has several "not found" libraries.Any idea what I should do ? | 17:25:05 | |
Download clipboard.png | 17:26:21 | |
Top: before adding "-Clink-arg=-fuse-ld=lld" Bottom: after | 17:26:34 | |
When I use buildRustPackage in a workspace it tries to build all the dependencies in the workspace instead of just the binary I want build. Is there a way to avoid this? | 17:28:30 | |
In reply to @glepage:matrix.orgI guess that this is the issue: https://github.com/NixOS/nixpkgs/issues/24744 What is the recommended workaround in this case ? | 17:36:34 | |
In reply to @apache8080:matrix.orgthere's probably some way to pass -p foo to cargo so that it only builds the foo package | 18:43:34 | |
surely there are some examples of this in nixpkgs already somewhere | 18:45:44 | |
yeah I tried the https://github.com/kixelated/moq-rs/tree/main This is the project I'm doing it on. The workspace recently got updated to have some wasm stuff and this package: https://github.com/kixelated/moq-rs/blob/main/nix/packages/moq.nix#L10 is trying to build the WASM stuff even though it doesn't depend on it | 19:22:07 | |
If I run this exact cargo command that nix build is using then it builds fine | 19:25:45 | |
is crateOverrides an argument for buildRustPackage? I tried to use the examples here but can't get it working. I keep getting a cannot coerce a set to string | 19:55:33 | |
just moved over to crate2nix | 20:26:50 | |
* just moved over to crate2nix and now its working | 20:29:49 | |
That looks like the same command buildRustPackage would generate to build a package. So what is different when you try to build it with nix? | 22:59:40 | |
yes that is why I manually ran that command. In nix build it tries to build dependencies for the whole workspace that my individual package doesn't depend on | 23:11:20 | |
8 Dec 2024 | ||
19:21:37 | ||
22:38:07 | ||
22:39:21 | ||
9 Dec 2024 | ||
10:17:10 | ||
Hi. I'm attempting to build a Rust package with a toolchain via Fenix / pkgs.makeRustPlatform / buildRustPackage. It seems to fail as a dependency miette cannot be found, with location searched: registry crates-io`. Would I need to set up a separate buildRustPackage for each missing library, or how can I fix it? | 10:19:37 | |
* Hi. I'm attempting to build a Rust package with a toolchain via Fenix / pkgs.makeRustPlatform / buildRustPackage. It seems to fail as a dependency miette cannot be found, with location searched: registry crates-io . Would I need to set up a separate buildRustPackage for each missing library, or how can I fix it? | 10:19:54 | |
Giving crate2nix a go | 10:20:32 | |
Got it to build for a while now after 1-2 hours of querying for substitutes (also added cachix eigenvalue). Build failed during libgit2 build. Is it likely that I'm doing something wrong if this was not taken from cache? | 13:00:12 | |
Build for 1 crate from crates.io worked. Build for the second crate still fails on libgit2 though | 13:28:08 | |
| 13:33:51 | |
Seems to have been due to a parallel build issue which breaks some packages. Retrying did it | 16:08:01 | |
* Seems to have been due to a parallel build issue which breaks some packages. Retrying a few times made it work | 16:08:07 | |
10 Dec 2024 | ||
Hi Toma , What do you think is missing to move forward? Unit tests? | 00:50:44 | |
* Hi Toma , What do you think is missing to move forward? Unit tests or comments? | 00:52:55 | |
Keep having build issues with icu_properties and libgit2-sys . I'm using the nixpkgs defaultCrateOverrides . Are there other things that are important to do to make sure dependencies / flags are set up correctly? | 03:17:42 | |
https://termbin.com/9gkz https://termbin.com/4ujd | 03:24:22 |