Nix Rust | 675 Members | |
| Rust | 153 Servers |
| Sender | Message | Time |
|---|---|---|
| 8 Nov 2021 | ||
If you use cargoSha256, then Nix doesn't care about the lockfile or Cargo.toml at all. It just runs cargo vendor, and then later cargo build with the vendored sources. | 16:47:21 | |
If you use the importCargoLock / cargoLock.lockFile thing, the cargo vendor part is replaced by a Nix derivation that downloads all the things in the lockfile, which is just the same as what cargo vendor would do | 16:48:41 | |
* If you use the importCargoLock / cargoLock.lockFile thing, the cargo vendor part is replaced by a Nix derivation that depends on fetchurl/fetchgit downloads of all the things in the lockfile, which is just the same as what cargo vendor would do | 16:49:04 | |
| Either way the patch entries in Cargo.toml should be honored | 16:49:19 | |
if you do need to apply patches before vendoring, you can declare them with cargoPatches | 16:49:21 | |
| I don't think the question was about patching Cargo.toml / Cargo.lock | 16:50:13 | |
| 16:50:21 | |
| The reason I asked is because of these errors | 16:50:31 | |
| but now that I look at it again, it doesn't seem to have anything to do with nix | 16:51:15 | |
| maybe the lockfile is outdated? | 16:51:22 | |
| or some git branch/tag was yanked? | 16:51:30 | |
| Or commit | 16:51:37 | |
| I'll play around a bit, thanks for the hint | 16:51:52 | |
In reply to @jonringer:matrix.org Interesting. I didn't know that so I used this pattern instead recently. Would
| 16:54:11 | |
In reply to @jonringer:matrix.org* Interesting. I didn't know that so I used this pattern instead recently. Would
https://github.com/NixOS/nixpkgs/pull/144733/files#diff-a35bcf6b38716a31d2a5ea43b4ff2e6217c591817597572a22d560fa86ba0bb8R28
| 16:54:22 | |
| * Interesting. I didn't know that so I used this pattern instead recently. Would
https://github.com/NixOS/nixpkgs/pull/144733/files#diff-a35bcf6b38716a31d2a5ea43b4ff2e6217c591817597572a22d560fa86ba0bb8R28
| 16:54:39 | |
| * Interesting. I didn't know that so I used this pattern instead recently. Would
https://github.com/NixOS/nixpkgs/pull/144733/files#diff-a35bcf6b38716a31d2a5ea43b4ff2e6217c591817597572a22d560fa86ba0bb8R28
| 16:54:57 | |
| should be the same thing | 16:55:00 | |
In reply to @legendofmiracles:matrix.orgI can't, my rust version is 1.55 but this program needs 1.56 | 17:03:26 | |
| staging-next has 1.56 | 17:04:10 | |
| it's in the binary cache | 17:05:14 | |
| 17:05:21 | |
| you can target staging-next. Should still be quick to review legendofmiracles | 17:07:35 | |
if you're hacking within nixpkgs. git rebase --onto=origin/staging-next HEAD~ | 17:08:09 | |
* if you're hacking within nixpkgs. git rebase --onto=origin/staging-next HEAD~1 | 17:08:14 | |
| I’m currently packaging in my local dotfiles overlays | 17:08:15 | |
| Ah, nevermind then :( | 17:08:26 | |
| Well, I did move it to nixpkgs now | 20:30:36 | |
| you need a rust compile 1.56+ | 20:36:18 | |
| and the looks like Cargo.toml needs to be updated | 20:36:37 | |