| 9 Nov 2025 |
raitobezarius | Ugh, OK, thanks | 15:48:21 |
raitobezarius | We will start bisecting on Monday if pennae doesn't beat me to it | 15:48:31 |
Sergei Zimmerman (xokdvium) | I get the same error as the above for nix eval "github:nixos/nixpkgs?rev=a999c1cc0c9eb2095729d5aa03e0d8f7ed256780#pkgsCross.gnu64.bitwarden" --no-eval-cache. So that's why I suspect that nixpkgs machinery is misled into thinking it's cross while it's not | 15:51:28 |
Sergei Zimmerman (xokdvium) | And that's both for cppnix/lix | 15:52:13 |
aloisw | 2.93:
nix-repl> nixosConfigurations.nixos.config.nixpkgs.hostPlatform == nixosConfigurations.nixos.config.nixpkgs.buildPlatform
true
main:
nix-repl> nixosConfigurations.nixos.config.nixpkgs.hostPlatform == nixosConfigurations.nixos.config.nixpkgs.buildPlatform
false
So it indeed thinks there's cross now where there wasn't before. | 16:19:34 |
aloisw | Slightly reduced reproducer:
let
inherit (import <nixpkgs> { }) lib;
in
(lib.evalModules {
modules = [
(
{ config, ... }:
{
options = {
buildPlatform = lib.mkOption {
type = lib.types.either lib.types.str lib.types.attrs;
apply = lib.systems.elaborate;
default = config.hostPlatform;
};
hostPlatform = lib.mkOption {
type = lib.types.either lib.types.str lib.types.attrs;
apply = lib.systems.elaborate;
default = "x86_64-linux";
};
isCross = lib.mkOption { type = lib.types.bool; };
};
config = {
isCross = config.buildPlatform == config.hostPlatform;
};
}
)
];
}).config.isCross
| 16:34:50 |
aloisw | Fully reduced reproducer:
with rec {
a = {
f = x: x;
meow = true;
};
b = a // {
meow = true;
};
};
a == b
| 16:39:41 |