!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

696 Members
Rust157 Servers

Load older messages


SenderMessageTime
15 Mar 2025
@isabel:isabelroses.comisabel changed their profile picture.14:46:58
@happens.lol:matrix.orghappens.lol changed their profile picture.16:23:04
16 Mar 2025
@tomasajt:matrix.orgTomaSome feedback would be appreciated for https://github.com/NixOS/nixpkgs/pull/390171 ideally, this should go into the current staging cycle15:08:06
@isabel:isabelroses.comisabel changed their profile picture.17:40:00
17 Mar 2025
@egrieco:matrix.orgegrieco joined the room.06:46:59
@sandro:supersandro.deSandro 🐧How can we untangle this? https://github.com/NixOS/nixpkgs/pull/389933#discussion_r1998917245 Should buildRustPackage not set configurePhase?14:56:57
@k900:0upti.meK900That makes no sense14:57:47
@k900:0upti.meK900It should not be buildRustPackage14:57:50
@k900:0upti.meK900It's either using Meson or Cargo, you don't get to have both14:57:57
@k900:0upti.meK900If it's Meson driving Cargo, look at how KDE things do it14:58:13
@sandro:supersandro.deSandro 🐧then no buildRustPackage should be used? got it15:04:58
@griff79:matrix.orggriff79 changed their display name from griff79 to griff.17:24:15
18 Mar 2025
@fliegendewurst:matrix.orgFliegendeWurst

Has someone seen this error before?

   Compiling serde v1.0.217
error: linker `aarch64-linux-gnu-gcc` not found
  |
  = note: No such file or directory (os error 2)

error: could not compile `proc-macro2` (build script) due to 1 previous error

https://hydra.nixos.org/build/290670376/nixlog/1

08:04:22
@sandro:supersandro.deSandro 🐧Our gcc is not Debian prefixes IIRC09:21:11
@sandro:supersandro.deSandro 🐧is there a .cargo/config.toml? Try deleting it09:21:27
@sigmasquadron:matrix.orgFernando Rodrigues joined the room.10:08:16
@sigmasquadron:matrix.orgFernando Rodrigues Hi folks. I'm getting a really weird issue with fetchCargoVendor. I'm updating below to 0.9.0, and their Cargo.toml requires anyhow 1.0.95, but Nix is vendoring 1.0.80 for some reason. 10:11:43
@fliegendewurst:matrix.orgFliegendeWurstI'll check. This package used to build before the staging-next in February. The odd thing is that it still builds fine for other Hydra architectures ...10:15:16
@fliegendewurst:matrix.orgFliegendeWurst

Oh, there is a config.toml with:

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"

That certainly explains it

10:16:00
@sigmasquadron:matrix.orgFernando Rodrigues * Hi folks. I'm getting a really weird issue with fetchCargoVendor. I'm updating below to 0.9.0, and their Cargo.toml requires anyhow 1.0.95, but Nix is vendoring 1.0.80 for some reason. Nevermind. Upstream did an oops. 10:21:01
@tomasajt:matrix.orgTomaThey must have not committed the lockfile10:21:07
@tomasajt:matrix.orgTomaI se, just edited10:21:20
@tomasajt:matrix.orgToma* I see, just edited10:21:28
@sigmasquadron:matrix.orgFernando Rodrigues
In reply to @tomasajt:matrix.org
They must have not committed the lockfile
Yep, that's exactly it. Guess we just update the lockfile ourselves and commit to Nixpkgs?
10:21:36
@tomasajt:matrix.orgToma Creating a .patch is less lines overall 10:22:02
@tomasajt:matrix.orgTomaAlso, maybe open an issue upstream if you have the time10:22:40
@sigmasquadron:matrix.orgFernando Rodrigues
In reply to @tomasajt:matrix.org
Also, maybe open an issue upstream if you have the time
Already one up.
10:22:49
@tomasajt:matrix.orgToma * Creating a .patch is less lines overall (remember to use cargoPatches instead of patches) 10:23:48
@sigmasquadron:matrix.orgFernando Rodrigues
In reply to @tomasajt:matrix.org
Creating a .patch is less lines overall (remember to use cargoPatches instead of patches)
Uh, the patch ended up being around 400 lines longer
10:28:32
@tomasajt:matrix.orgToma I still recommend using a .patch because you'd have to use depsExtraArgs if you wanted to use postPatch 10:42:08

Show newer messages


Back to Room ListRoom Version: 6