Nix Rust | 651 Members | |
| Rust | 147 Servers |
| Sender | Message | Time |
|---|---|---|
| 6 Jul 2025 | ||
| Perhaps same problems will arise with C++ apps. | 18:04:56 | |
| So you kinda have to build natively... | 18:05:19 | |
| Although Dioxus Blitz supposedly can be statically linked, since it renders natively. But I haven't looked into this. | 18:06:23 | |
Maybe https://github.com/rust-cross/cargo-xwin can just work. Though no Nix and no native dx support. | 18:55:20 | |
| 7 Jul 2025 | ||
| cargo-llvm-cov added a git dev-dependency in its latest release that isn't reflected in Cargo.lock on crates.io, breaking nixpkgs' "download the lockfile from crates.io and build against that to avoid checking the entire lockfile into nixpkgs" workflow: https://github.com/taiki-e/cargo-llvm-cov/commit/fb528c913f5b5577b6971dae9d99d70babdd42e0 | 06:49:53 | |
| how should i deal with this | 06:49:59 | |
| i can think of two options:
| 06:50:35 | |
| i feel like at this point i would prefer "something else" but i'm not sure what that should/could be | 06:51:42 | |
| since it seems like repeatable builds are really not a priority for this maintainer | 06:51:56 | |
| * cargo-llvm-cov added a git dev-dependency in its latest release that isn't reflected in Cargo.lock on crates.io, breaking nixpkgs' "download the lockfile from crates.io and build against that to avoid checking the entire lockfile into nixpkgs" workflow: https://github.com/taiki-e/cargo-llvm-cov/commit/fb528c913f5b5577b6971dae9d99d70babdd42e0 | 06:52:51 | |
| i guess checking in cargo.lock isn't that uncommon:
| 06:55:59 | |
| * i guess checking in cargo.lock isn't that uncommon:
| 06:56:26 | |
| 07:58:40 | ||
| 08:37:31 | ||
| There used to be a lot more but I removed most of them... Anyways: In this case I think it is fine to eat the bullet if the lockfile is not crazy large. But in case you really don't want to:
At least I think this could work. | 12:31:15 | |
| * There used to be a lot more but I removed most of them... Anyways: In this case I think it is fine to eat the bullet if the lockfile is not crazy large. But in case you really don't want to:
At least I think this could work. | 13:00:29 | |
| 13:11:39 | ||
| yeah i had considered that, but it seems more convoluted and annoying to maintain | 14:26:36 | |
| i made a PR that vendors the lockfile last night (about 8 hours ago) and it's merged now, so | 14:27:07 | |
| really wish people would just commit their lockfiles | 14:27:49 | |
| 16:32:49 | ||
| 18:09:41 | ||
| 23:28:49 | ||
| 9 Jul 2025 | ||
| 04:00:45 | ||
| 04:04:04 | ||
| 04:04:04 | ||
| 04:04:35 | ||
| 07:40:33 | ||
| 10 Jul 2025 | ||
At least for a package that contains both the code and default.nix (and flake.nix, but that shouldn't be relevant), setting cargoDepsName = pname; doesn't seem to have the effect of decoupling cargoHash from the package version, at least when the version in default.nix and Cargo.toml are the same. I.e., if I change the package version in Cargo.toml, cargo also updates the version in Cargo.lock, and cargoHash changes. I'm a bit confused by the documentation though:>> The tarball with vendored dependencies contains a directory with the package’s name, which is normally composed of pname and version. This means that the vendored dependencies hash (cargoHash) is dependent on the package name and version. The cargoDepsName attribute can be used to use another name for the directory of vendored dependencies. For example, the hash can be made invariant to the version by setting cargoDepsName to pname: <...> This sounds as though cargoHash wound then not depend on the package version anymore, but this is not what I see in practice.Additionally, adding or removing cargoDepsName = pname; does not change cargoHash - but I expected it to change based on the quoted paragraph from the docs (i.e., the directory name inside the tarball should have changed). What does cargoDepsName really do? | 20:09:45 | |
| The package in question: https://codeberg.org/undltd/om/src/branch/main/default.nix | 20:11:23 | |