Nix Rust | 693 Members | |
| Rust | 156 Servers |
| Sender | Message | Time |
|---|---|---|
| 20 Feb 2025 | ||
| since i would already have a nixpkgs at the point i would need to call this | 19:20:55 | |
| 21 Feb 2025 | ||
| 05:49:50 | ||
| Concerning https://github.com/NixOS/nixpkgs/pull/383717#issuecomment-2673988082 : Was the linker setting in .cargo/config.toml previously ignored and now it's somehow picked up by buildRustPackage? | 09:32:47 | |
Or was clang previously accidentally exposed to buildRustPackage? 🤔 | 09:36:47 | |
| i'm using crane to build dependencies and the finaly binary in two different steps.
how can i make sure to export all the drv-files and their outputs when exporting a nix store closure? | 12:58:43 | |
| * i'm using crane to build dependencies and the finaly binary in two different steps.
how can i make sure to export all the drv-files and their outputs when exporting a nix store closure? | 13:00:04 | |
| oh. actually i might not need the drvs, just their outputs:
| 13:35:18 | |
| that sped things up :) | 13:36:00 | |
| 13:55:13 | ||
| I am getting an error from a derivation I made. Specifically:
Has anyone seen this before? | 18:33:46 | |
| The derivation itself is pretty simple
| 18:37:44 | |
| I saw this before when I was doing some refactoring but was able to just revert the change so I ignored it | 18:38:20 | |
| * I saw this before when I was doing some refactoring on another project but was able to just revert the change so I ignored it | 18:38:29 | |
| 22 Feb 2025 | ||
| i got this to work fwiw: https://gitlab.computer.surgery/charles/dotfiles/-/blob/27483e3a0aca60882d731c271f57ea95dd8da3c2/nix/default.nix#L28-39 | 02:25:47 | |
| i opened an issue about this uh usability papercut with an explanation of how to do it so others can use it as a reference: https://github.com/oxalica/rust-overlay/issues/209 | 02:36:24 | |
| 23 Feb 2025 | ||
| 17:24:50 | ||
| 17:24:54 | ||
| 17:24:57 | ||
| 24 Feb 2025 | ||
| 00:05:17 | ||
| 26 Feb 2025 | ||
| 09:50:20 | ||
| 27 Feb 2025 | ||
| Toma: I think I just found out why cargo-about has issues with git-fetched crates in nixpkgs, and wondered if you had any idea how/if fetchCargoVendor could accomodate this use-case. The affected crates for which cargo-about fails to read the LICENSE are from a monorepo, where the LICENSE file is referenced in each crate's Cargo.toml but is located in the parent directory (the root of the repository). For fetchCargoVendor, the parent directory is the vendor directory itself, not the root of the crate's git repository, resulting in this error:
| 16:08:10 | |
| * Toma: I think I just found out why cargo-about has issues with git-fetched crates in nixpkgs, and wondered if you had any idea how/if fetchCargoVendor could accomodate this use-case. The affected crates for which cargo-about fails to read the LICENSE are from a Cargo workspace git repo, where the LICENSE file is referenced in each crate's Cargo.toml but is located in the parent directory (the root of the repository). For fetchCargoVendor, the parent directory is the vendor directory itself, not the root of the crate's git repository, resulting in this error:
| 16:08:32 | |
| Ok minor correction, the LICENSE file is not referenced by the crate's Cargo.toml but by the cargo-about config of the project that depends on them (in this case, zed-editor):
| 16:11:18 | |
Hi everyone. If I add cargo and rustc to system packages and try to run cargo run or cargo build, I'm getting error: linker \`cc\` not found. I do use nix develop with mkShell most of the time, where this problem does not appear. But I am also getting the same error from emacs when trying to use eglot, and I'm not sure how to counter that. | 16:27:11 | |
Preferably I would not even have cargo and rustc in global $PATH, but I want it to work in emacs when editing rust code with eglot. | 16:28:20 | |
I would suggest using direnv with a Nix-based .envrc | 16:33:30 | |
then you can make your editor inherit your nix develop environment | 16:33:42 | |
(and as a bonus, get it just by cding into a project directory in your shell) | 16:33:50 | |
I'm a little scared of code executing when I cd into things, though using $PATH from various nix develop in emacs would be interesting | 16:38:19 | |
| direnv requires you to manually allow each .envrc before executing it, so you have a chance to read it before you run it. It re-requests if the file changes too | 16:44:26 | |