Nix Rust | 698 Members | |
| Rust | 154 Servers |
| Sender | Message | Time |
|---|---|---|
| 12 Jan 2026 | ||
| Hi all -- anybody doing much bare-metal embedded work with nix + rust? I'm a novice and just learning for fun, but can't seem to get a build to succeed due to multiple conflicting dependencies for For my prior ESP32C3 projects, I know that Unfortunately in this case, I'm finding that both Does anyone know of a workaround for this? It looks like naersk may have support for an "additional" Thanks for any suggestions! | 22:46:08 | |
you can probably lockFileContents = builtins.readFile ./Cargo.lock + '' … ''; | 23:08:02 | |
you could also consider just setting a cargoHash rather than importing the lock file directly | 23:08:14 | |
| (but ofc will have to update it on every lock file change) | 23:08:19 | |
| cc Toma who might have other ideas | 23:08:28 | |
| (fwiw, I wouldn't use naersk these days, crane might be worth a look though) | 23:10:21 | |
| 13 Jan 2026 | ||
| Setting
Setting Will tinker more, and will look into crane -- thanks! | 00:29:59 | |
I mean you can skip all the cargoLock, Git hashes, etc. stuff and just specify cargoHash = ""; and then fill in the hash it gives (I think?) | 00:30:28 | |
unless build-std messes with that, which is… possible | 00:30:33 | |
| Was hoping to avoid the "update every time the lock file changes" issue you mentioned. Figure the nightly version is locked so the deps required for build-std should be static (?). Maybe I misunderstood your comment though. | 00:41:17 | |
| Did anyone look into this. | 10:42:27 | |
| * Did anyone look into this? | 10:50:50 | |
| 14 Jan 2026 | ||
| 11:59:58 | ||
| hey guys, I'm having a hard time to build a rust project with tikv-jemalloc-sys, does anybody else faced it before? | 18:10:31 | |
| Don't we literally have a hook for that | 18:14:06 | |
| can you link it? I'm quite new into nix/nixos | 18:19:10 | |
| tbh not even know what a hook is on nix | 18:19:34 | |
| rust-jemalloc-sys and rust-jemalloc-sys-unprefixed. Look for usages of these in nixpkgs | 18:34:10 | |
| amazing! Thank you | 18:44:52 | |
| gotta study more | 18:45:04 | |
| 22:47:23 | ||
| 15 Jan 2026 | ||
| 00:37:38 | ||
| Hello! I'm trying to package a rust program, however one of the dependent crates is failing to build due to a missing patch. This is my package.nix: https://bpa.st/LQWQ I'm getting the error: I am able to find the patch file in nix store: | 00:48:27 | |
| * Hello! I'm trying to package a rust program, however one of the dependent crates is failing to build due to a missing patch. This is my package.nix: https://bpa.st/LQWQ I'm getting the error: Error: "Error applying patch '/build/tari-5.2.0-vendor/libtor-src-47.13.0+0.4.7.13/patches/libevent-0001-libevent-makefile.patch': \"Os { code: 2, kind: NotFound, message: \\\"No such file or directory\\\" }\""I am able to find the patch file in nix store: /nix/store/109zbiqkhxnw9dpr0qazg29m4ap8p6ha-tari-5.2.0-vendor/libtor-src-47.13.0+0.4.7.13/patches, but I'm not quite sure how to tell cargo to look there. Would appreciate any help :) | 01:14:16 | |
| Maybe I can skip building libtor-src altogether and use tor from nixpkgs? Not really sure how that works yet. | 01:37:24 | |
| 29 Oct 2021 | ||
| 19:57:43 | ||
| 19:57:43 | ||
| 19:57:43 | ||
| 19:58:21 | ||
| 19:59:14 | ||