| 1 Nov 2025 |
emily | since IIRC Rust only supports the last couple LLVM versions | 17:16:48 |
emily | of course this will also be a problem for Mozilla… | 17:16:54 |
Ihar Hrachyshka | they are still on llvm19 | 17:18:14 |
Ihar Hrachyshka | looking at adopting 20 I think | 17:18:19 |
Ihar Hrachyshka | fun fact - mozilla dude had to compile 21 himself because they apparently don't release builds of 21 for macos yet? | 17:18:53 |
emily | I thought they switched to 20 already. | 17:20:39 |
emily | but are they on an old Rust then? because I'd be surprised if latest Rust supports LLVM 19 | 17:20:51 |
Ihar Hrachyshka | https://bugzilla.mozilla.org/show_bug.cgi?id=1923255 | 17:23:02 |
emily | fyi, this is the function: https://searchfox.org/firefox-main/source/image/encoders/png/nsPNGEncoder.cpp#718. I am wondering if something dodgy is going on with alignment here. (perhaps → #mozilla:nixos.org) | 17:23:39 |
Ihar Hrachyshka | their rust policy: https://github.com/mozilla-firefox/firefox/blob/main/docs/writing-rust-code/update-policy.md | 17:26:08 |
Ihar Hrachyshka | Firefox 143 Rust 1.86.0 1.82.0
Firefox 144 Rust 1.89.0 ? | 17:27:08 |
Ihar Hrachyshka | bisect for llvm would be 15 steps if all goes well (I don't know how often I'd need to skip in the process) | 17:35:44 |
emily | between our 20.x package tag and our 21.x package tag I assume? | 17:51:15 |
Ihar Hrachyshka | yes. | 17:52:36 |
| Gaétan Lepage changed their profile picture. | 22:53:12 |
| Gaétan Lepage changed their profile picture. | 22:54:12 |
| 2 Nov 2025 |
| p2p joined the room. | 01:27:51 |
| yoquec joined the room. | 12:05:00 |
| @dawnofmidnight:catgirl.cloud changed their display name from whispers to whispers (it/fae). | 17:58:07 |
| amadaluzia joined the room. | 22:29:53 |
| 3 Nov 2025 |
| @kttns0ut:matrix.org joined the room. | 10:14:55 |
crop | is there a declarative alternative to cargo install? | 10:15:23 |
Acid Bong | In reply to @crop_tech:matrix.org is there a declarative alternative to cargo install? write a recipe with rustPlatform.buildRustPackage and nix build it
except it's not an alternative, it's a Nixpkgs builder exactly for Cargo | 10:21:31 |
crop | i am trying to build rustfilt with this:
rustfilt = pkgs.rustPlatform.buildRustPackage rec {
pname = "rustfilt";
version = "0.2.1";
src = pkgs.fetchCrate {
inherit pname version;
sha256 = "sha256-Xo6qM2qdzkvoLkOsxksKdpi1rkpBKPGrPxz4zJ3EVyY=";
};
cargoHash = "";
cargoDepsName = pname;
};
but the problem is that the package doesn't contain a cargo lock file so it fails in fetch-cargo-vendor-util
| 11:26:41 |
crop | i tried to use the src from github but i now run into this problem: https://github.com/NixOS/nixpkgs/issues/392872 | 12:41:11 |
crop | ok solved by switching to master and not use the taged version | 12:49:36 |
Acid Bong | In reply to @crop_tech:matrix.org
i am trying to build rustfilt with this:
rustfilt = pkgs.rustPlatform.buildRustPackage rec {
pname = "rustfilt";
version = "0.2.1";
src = pkgs.fetchCrate {
inherit pname version;
sha256 = "sha256-Xo6qM2qdzkvoLkOsxksKdpi1rkpBKPGrPxz4zJ3EVyY=";
};
cargoHash = "";
cargoDepsName = pname;
};
but the problem is that the package doesn't contain a cargo lock file so it fails in fetch-cargo-vendor-util
fetch the crate (or clone the repo), generate the lockfile (cargo generate-lockfile), put the lockfile in your nix config and change cargo* attrs to cargoLock.lockFile = ./Cargo.lock; | 13:06:25 |
Makuru | Why does rustc build for me but fenix not? | 15:35:46 |
Makuru | Here the flake: | 15:36:16 |
Makuru | Download flake.nix | 15:36:16 |