From db83bc4c6373fa4d7ced81137cd01ede43ef7036 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Mon, 9 Nov 2026 14:50:47 -0500 Subject: [PATCH] fix(nix): Disable broken checks for tzdata and sqlite --- nix/packages/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/nix/packages/default.nix b/nix/packages/default.nix index 7cba9b870..26171e846 100644 --- a/nix/packages/default.nix +++ b/nix/packages/default.nix @@ -18,6 +18,23 @@ { packages = let + # These musl deps aren't in the binary cache, so they're built locally, and their + # test suites run (and break) when the builder can execute musl binaries. + # + # TODO: drop tzdata override once https://github.com/NixOS/nixpkgs/pull/582577 reaches nixos-unstable + # - tzdata: `now.ck` checks against the current date. + # TODO: drop sqlite override once https://github.com/NixOS/nixpkgs/issues/580629 is resolved + # - sqlite: its test runner fails to build `testfixture` when cross-compiling to musl. + muslOverlay = + _final: prev: + lib.genAttrs [ "tzdata" "sqlite" ] ( + name: + if prev.stdenv.hostPlatform.isMusl then + prev.${name}.overrideAttrs { doCheck = false; } + else + prev.${name} + ); + mkPackages = pkgs: let @@ -78,6 +95,7 @@ import inputs.nixpkgs { localSystem = system; crossSystem = "x86_64-unknown-linux-musl"; + overlays = [ muslOverlay ]; } ) )) @@ -86,6 +104,7 @@ import inputs.nixpkgs { localSystem = system; crossSystem = "aarch64-unknown-linux-musl"; + overlays = [ muslOverlay ]; } ) ));