!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

683 Members
Rust158 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
4 Aug 2025
@dramforever:matrix.orgdramforever
In reply to @emilazy:matrix.org
I think it's not because the main package set isn't spliced and nobody knows why
i think the funniest part is iirc pkgs in _module.args in nixos is spliced
18:16:57
@emilazy:matrix.orgemilywell…18:17:16
@emilazy:matrix.orgemilyhttps://github.com/NixOS/nixpkgs/pull/41627618:17:24
@emilazy:matrix.orgemilyI spent several days being like wtf is cross NixOS just totally busted until I discovered this bug18:17:32
@emilazy:matrix.orgemilybut yes by default it is18:17:47
@kjeremy:matrix.orgkjeremythis didn't seem to change anything18:40:31
@emilazy:matrix.orgemilyyour whole splicing is messed up18:45:33
@emilazy:matrix.orgemilycan you do this as not an overlay18:45:40
@kjeremy:matrix.orgkjeremy I'm not sure. It's even worse than this in reality. This is an unholy abomination. We're a few years out of date with nixpkgs and the latest nix-ros-overlay so I'm trying to jam these packages into our older nix-ros-overlay with an overlay and then use rust from nix-unstable to compile the zenoh packages since they require a newer toolchain. Miraculously it works natively but dies horribly during cross 18:48:11
@emilazy:matrix.orgemilyuhhh18:49:01
@kjeremy:matrix.orgkjeremyyep18:49:09
@emilazy:matrix.orgemilyyou should be happy it can build anything :D18:50:05
@kjeremy:matrix.orgkjeremyhonestly it's pretty impressive that nix can do this when non-cross18:50:30
@emilazy:matrix.orgemily anyway any time you nativeBuildInputs you must explicitly use buildPacakges 18:50:45
@emilazy:matrix.orgemilysince no splicing18:50:51
@kjeremy:matrix.orgkjeremy Okay! So I got it to use the right packages by using buildPackages.{rustPlatform, cargo, rustc}. It turns out I had to tell zeno to pass the right architecture down to cmake with cmakeFlags = [ "-DZENOHC_CUSTOM_TARGET=aarch64-unknown-linux-gnu" ]; 20:06:51

Show newer messages


Back to Room ListRoom Version: 6