!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

675 Members
Rust152 Servers

Load older messages


SenderMessageTime
3 Nov 2025
@makuru:catgirl.cloudMakuruWhy does it work with rustc but not with fenix?16:05:10
@makuru:catgirl.cloudMakuruWhere does rustc change stuff?16:05:26
@dacid44:matrix.orgdacid44 How do I manage binaries from crates.io with nix? like, stuff I'd usually install by running cargo install cargo-make 16:51:26
@dacid44:matrix.orgdacid44if it matters, I'm currently using fenix for my Rust toolchain16:53:28
@dacid44:matrix.orgdacid44 also, was cargo-make removed from nixpkgs? I have an old project that pulls it from nixpkgs just fine, but it doesn't appear to exist there anymore 16:58:16
@dacid44:matrix.orgdacid44 * also, was cargo-make removed from nixpkgs? I have an old project that pulls it from nixpkgs (24) just fine, but it doesn't appear to exist there anymore 16:58:27
@benjaminsparks:chat.alugha.appBen Sparkswell ideally they'd be packaged in nixpkgs, so just an install like any other16:58:32
@dacid44:matrix.orgdacid44 * also, was cargo-make removed from nixpkgs? I have an old project that pulls it from nixpkgs (24.05) just fine, but it doesn't appear to exist there anymore 16:58:34
@dacid44:matrix.orgdacid44 cargo-make seems to have been removed from nixpkgs 16:59:16
@dacid44:matrix.orgdacid44 * cargo-make seems to have been removed from nixpkgs? 16:59:35
@ghpzin:envs.netghpzin Still there on current master, search.nixos.org is just having problems. 17:01:21
@dacid44:matrix.orgdacid44ah. Yeah I just tried it in my home-manager config and it worked17:01:40
@dacid44:matrix.orgdacid44 in general though, how would I do that for something that hasn't been packaged already? Do I have to fully package it myself, or is there a way to just plug in the name on crates.io and maybe a rust toolchain derivation or something and have it be built and installed as if by cargo install? 17:04:42
@ghpzin:envs.netghpzin Packaging it yourself.
https://github.com/nix-community/nix-init
can help for simpler cases
But things like adding required native libraries or patching weird build.rs things would need manual fixes after.
17:10:30
@makuru:catgirl.cloudMakuru Figured it out! Needed to add llvmPackages.bintools. 17:40:48
@makuru:catgirl.cloudMakuru and this: RUSTFLAGS -C link-self-contained=-linker 17:41:25
4 Nov 2025
@cafkafk:gitter.imcafkafk changed their profile picture.08:22:50
@whispers:catgirl.cloudwhispers (it/fae) joined the room.20:06:43
@dawnofmidnight:catgirl.cloud@dawnofmidnight:catgirl.cloud left the room.20:06:49
6 Nov 2025
@marienz:matrix.orgMarien Zwart joined the room.08:32:46
7 Nov 2025
@hsngrmpf:matrix.org@hsngrmpf:matrix.org left the room.11:40:00
@awwpotato:envs.net@awwpotato:envs.net changed their display name from awwpotato (she/her) to -> @da157:catgirl.cloud.18:30:19
@awwpotato:envs.net@awwpotato:envs.net left the room.18:41:58
@emma:rory.gay@emma:rory.gay left the room.22:41:10
9 Nov 2025
@9hp71n:matrix.orgghpzin (moved to @ghpzin:envs.net) changed their display name from ghpzin to ghpzin (moved to @ghpzin:envs.net).15:03:52
@draed:matrix.orgdraed joined the room.15:23:51
11 Nov 2025
@robert:scs.ems.hostRobert Rose changed their display name from Robert Rose - 🏝️ bis 10.11.25 to Robert Rose.09:22:30
@oak:universumi.fioak 🏳️‍🌈♥️ changed their profile picture.19:20:27
@n8henrie:matrix.orgn8henrie

Hi all -- relative novice, hoping someone can help me run a rust binary built outside of nix in a nixosTest (as part of a bisect to fix a problem upstream). I've been using runCommand to copy it into the test image with autoPatchelfHook providing the dependencies and dontStrip = true, but still getting symbol lookup error: /nix/store/...espanso/bin/espanso: undefined symbol: _ZN12wxWindowBase14RegisterHotKeyEiii at runtime (even though wxGTK32 is in the buildInputs).

Including all the buildInputs for an xorg-based linux system from https://github.com/espanso/espanso/blob/dev/nix/espanso.nix

Anyone know why copying a binary that runs fine outside nix into a NixOS VM would give me this wx-related missing symbol error when all the required libraries seem to be linked (at least I don't see anything obviously missing based on ldd)?

20:41:54
@ghpzin:envs.netghpzin Do you need to do something special during runtime to trigger it ? 21:29:43

Show newer messages


Back to Room ListRoom Version: 6