| 20 Oct 2025 |
Marie | RUSTC_BOOTSTRAP = 1 | 08:43:21 |
Marie | you can't use fenix in nixpkgs | 08:43:41 |
Anders | Which nightly do you get specifically? I get some macro errors | 08:47:09 |
Marie | none | 08:48:10 |
Marie | there's only stable | 08:48:15 |
Marie | which is 1.89.0 right now | 08:48:23 |
Marie | and there's this PR for 1.90.0: https://github.com/NixOS/nixpkgs/pull/451179 | 08:48:56 |
Anders | I see. So I have to wait or maybe make a fork that does not need nightly stuff? | 08:50:12 |
Marie | yes, ideally would be if it could compile on stable | 08:50:54 |
hexa | Redacted or Malformed Event | 11:48:51 |
Anders | Trying to see if it compiles with 1.90.0 | 12:15:57 |
Anders | I get the same macro errors as in 1.89.0 | 12:43:17 |
| rec joined the room. | 13:07:07 |
| @vlmutolo:matrix.org left the room. | 15:55:08 |
Anders | Ok, they are still using nightly features. But we can still use my nix build using rust nightly. | 16:02:40 |
K900 | No | 16:03:31 |
K900 | We can't | 16:03:32 |
K900 | We will not allow Rust nightlies in nixpkgs, as that's a maintenance nightmare long term | 16:03:46 |
Anders | I mean just to compile it outside nixpkgs. It is a flake. | 16:05:29 |
Anders | https://github.com/Anderssorby/relibc/blob/add-nix-build/flake.nix | 16:06:18 |
K900 | Outside of nixpkgs you can do whatever you want yeah | 16:10:13 |
hexa | curious case of cargo metadata call of a libraries build.rs erroring out due to a missing optional dependency (libz-rs-sys) when libz-sys has been chosen instead by the lockfile of the application | 20:01:24 |
hexa | ugh, I'm rewriting that | 20:01:49 |
hexa | * I have a curious case where a library's build.rs calls cargo metadata and fails because an optional dependency (libz-rs-sys) is missing. | 20:02:41 |
hexa | * Servo has locked libz-sys instead, which is an alternative to libz-rs-sys and that has been correctly vendored. | 20:03:02 |
hexa | https://github.com/NixOS/nixpkgs/pull/453957 | 20:03:22 |
hexa | called `Result::unwrap()` on an `Err` value: CargoMetadata {
stderr: "error: no matching package found\nsearched package name: `libz-rs-sys`
perhaps you meant: libdbus-sys or libz-sys
location searched: directory source `/build/servo-0.0.1-unstable-2025-10-20-vendor` (which is replacing registry `crates-io`)
required by package `mozjs_sys v0.140.0-6 (/build/servo-0.0.1-unstable-2025-10-20-vendor/mozjs_sys-0.140.0-6)`
" }
| 20:03:32 |
hexa | reproducer included, but I'm frankly lost again | 20:03:58 |
hexa | preBuild = ''
pushd ../servo-*-vendor/mozjs*sys*/
cargo metadata
exit 1
'';
| 20:04:09 |
hexa | * preBuild = ''
pushd ../servo-*-vendor/mozjs*sys*/
cargo metadata
exit 1
'';
| 20:04:11 |