Nix Rust | 639 Members | |
| Rust | 147 Servers |
| Sender | Message | Time |
|---|---|---|
| 3 Nov 2025 | ||
| What brakes me is that the shell isnt working but the package does? | 15:37:21 | |
Here the error: | 15:37:45 | |
| Huh? what why? | 15:38:58 | |
| Why it starting a non linked but linked bin, from the nix store? | 15:39:27 | |
| Why does it work with rustc but not with fenix? | 16:05:10 | |
| Where does rustc change stuff? | 16:05:26 | |
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 | |
| if it matters, I'm currently using fenix for my Rust toolchain | 16:53:28 | |
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 | |
* 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 | |
| well ideally they'd be packaged in nixpkgs, so just an install like any other | 16:58:32 | |
* 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 | |
cargo-make seems to have been removed from nixpkgs | 16:59:16 | |
* cargo-make seems to have been removed from nixpkgs? | 16:59:35 | |
Still there on current master, search.nixos.org is just having problems. | 17:01:21 | |
| ah. Yeah I just tried it in my home-manager config and it worked | 17:01:40 | |
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 | |
| 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 | |
Figured it out! Needed to add llvmPackages.bintools. | 17:40:48 | |
and this: RUSTFLAGS -C link-self-contained=-linker | 17:41:25 | |
| 4 Nov 2025 | ||
| 08:22:50 | ||
| 20:06:43 | ||
| 20:06:49 | ||
| 6 Nov 2025 | ||
| 08:32:46 | ||
| 7 Nov 2025 | ||
| 11:40:00 | ||
| 18:30:19 | ||
| 18:41:58 | ||
| 22:41:10 | ||
| 9 Nov 2025 | ||
| 15:03:52 | ||
| 15:23:51 | ||