!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

645 Members
Rust147 Servers

Load older messages


SenderMessageTime
8 Dec 2025
@ralith:ralith.comRalith some part of the toolchain seems to have started stripping the RUNPATH from proc macro crates that link shared libraries in the environment. Anyone have a fix? 05:16:32
@ralith:ralith.comRalith it's set to /path/to/my/project/outputs/out/lib, which is pretty weird because that doesn't even exist... 05:17:46
@ralith:ralith.comRalith dpc (migrated to @dpc:dpc.pw): looks like you reported something similar at https://discourse.nixos.org/t/rust-binaries-losing-runpath-on-one-machine-only-fedora/34324, did you ever sort it out? 05:19:23
@rosssmyth:matrix.orgrosssmythCould you provide code? 16:09:23
@rosssmyth:matrix.orgrosssmythIt's hard to know what going on with just a description 16:09:36
@hythera:matrix.orgHythera joined the room.21:31:24
9 Dec 2025
@ralith:ralith.comRalith in my environment it reproduces easily with cargo test in https://github.com/Ralith/vk-shader-macros/. Build should have a rust toolchain and SHADERC_LIB_DIR = "${pkgs.shaderc.lib}/lib"; in the environment. 00:23:17
@ralith:ralith.comRalith

you'll get the same error (plus some downstream noise), and you can see:

~/src/vk-shader-macros> readelf -d target/debug/deps/libvk_shader_macros-5228c9752deafce6.so

Dynamic section at offset 0xda180 contains 31 entries:
  Tag        Type                         Name/Value
 0x000000000000001d (RUNPATH)            Library runpath: [/home/ralith/src/vk-shader-macros/outputs/out/lib]
 0x0000000000000001 (NEEDED)             Shared library: [libshaderc_shared.so.1]

modulo variation in the filename, ofc

00:27:19
@rosssmyth:matrix.orgrosssmythI meant the Nix code.03:17:25
@rosssmyth:matrix.orgrosssmythI would like to use your exact setup 03:17:34
@rosssmyth:matrix.orgrosssmythSo just saying "run cargo test" isn't that useful 03:17:50
@rosssmyth:matrix.orgrosssmythWhat does the environment look like, where did you get cargo, does this replicate in the sandbox03:18:12
@ralith:ralith.comRalith the nix code is utterly trivial, it's a shell with rustChannels.stable.rust and the env var I mentioned 04:04:38
@ralith:ralith.comRalithI don't know what "the sandbox" means here04:04:50
@pyrox:pyrox.devdish [Fox/It/She]
In reply to @ralith:ralith.com
I don't know what "the sandbox" means here
its the nix build sandbox, i.e the environment where builds happen in nix
04:22:15
@ralith:ralith.comRalithno idea, how do I go from a nix shell that I type "cargo test" into to that?04:22:58
@cashmere:cashmere.rscashmere changed their profile picture.11:26:39
10 Dec 2025
@truelle_trash_queen:matrix.orgTheodora changed their display name from Theodora The Absurdist Schizotisticoball to Theodora.12:17:19
11 Dec 2025
@creepinson:matrix.org@creepinson:matrix.org left the room.06:15:53
@theo-paris:matrix.orgTheo Paris joined the room.06:18:47
@suua:matrix.orgsuua joined the room.16:09:46
@winter:catgirl.cloudWinter anyone else's Cargo not getting completions for e.g. cargo add --[TAB] on fish? 21:12:07
@antifuchs:asf.computerantifuchsconfirm, I see that behavior too; could be it's not in the generated completions?21:39:26
@rosssmyth:matrix.orgrosssmythI do not see fish completions being generated in the cargo derivation. I'll put up a PR for them. 21:47:50
@rosssmyth:matrix.orgrosssmythhttps://github.com/NixOS/nixpkgs/pull/46999622:12:14
12 Dec 2025
@whispers:catgirl.cloudwhispers (it/fae) changed their profile picture.04:51:29
13 Dec 2025
@mjolnir:nixos.orgNixOS Moderation Bot unbanned @mightyiam:matrix.org@mightyiam:matrix.org.05:59:43
@dontblameme:matrix.org@dontblameme:matrix.org left the room.13:56:48
@rosssmyth:matrix.orgrosssmyth Forwarded from #review-requests:nixos.org
https://github.com/NixOS/nixpkgs/pull/458881
20:30:58
@rosssmyth:matrix.orgrosssmyth * Forwarded from #review-requests:nixos.org
https://github.com/NixOS/nixpkgs/pull/458881
https://matrix.to/#/!zihVdbsMjkhRfMQMXv:nixos.org/$wi0KSR9N8-Y70F_4CSfAYGc8BE7czevIqqsOoQDdnXo?via=nixos.org&via=matrix.org&via=tchncs.de
20:38:55

There are no newer messages yet.


Back to Room ListRoom Version: 6