From faa9f25079ebc3b62b7261a626381d65f9719f08 Mon Sep 17 00:00:00 2001 From: "developing-today[bot]" <5454422+developing-today[bot]@users.noreply.github.com> Date: Wed, 4 Nov 2026 06:27:38 -0600 Subject: [PATCH 1/2] chore(deps): pin nixpkgs-25 e7439b6b -> 1d060086 (nixos-unstable channel rev) just update-nixpkgs-unstable: the only direct nixos-unstable input left on main is nixpkgs-25 (nixpkgs/nixpkgs-unstable follow the fleet pin since #5311). Pinned to the Hydra-gated channel revision 1d060086d60c (jobset nixos:unstable, eval 1830995, latest finished tested build 352014846) instead of branch HEAD. Consumers: activitywatch + haskellPackages.misfortune (nixos/environment/default.nix). --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index da7f923a90..5c7a851ff4 100644 --- a/flake.lock +++ b/flake.lock @@ -1755,11 +1755,11 @@ }, "nixpkgs-25": { "locked": { - "lastModified": 1791456040, - "narHash": "sha256-H83yz/do+hjOO0uujHyH8RgtIQP2v7Mw+cLwcZK/xKc=", + "lastModified": 1793726008, + "narHash": "sha256-jQp1wKvbwWdLBASTXkSi/VYmDJ5AbBi1WvcMt9HWJC8=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e7439b6b14ad3cc35d05608ebca9bce01a25f5f8", + "rev": "1d060086d60cb76a40cf37109f979d88a5bd6396", "type": "github" }, "original": { From 1335212652339b4f9fd45936489a95f8fe8585cf Mon Sep 17 00:00:00 2001 From: "developing-today[bot]" <5454422+developing-today[bot]@users.noreply.github.com> Date: Wed, 4 Nov 2026 07:03:14 -0600 Subject: [PATCH 2/2] fix(nixos): restore regex-pcre build env on the nixpkgs-25 segment At the new nixpkgs-25 pin (1d060086, the nixos-unstable channel rev), haskellPackages.regex-pcre -- misfortune's dependency -- is marked broken under nixpkgs' problems framework, and the marking is honest: the Haskell builder no longer adds the pkg-config wrapper or the pkgconfig-depends libraries to build environments, so regex-pcre's Cabal configure hard-fails (Cabal-7620) and its buildInputs contain no pcre at all. The stock segment therefore refuses to evaluate the amd toplevel. Per Drew's 2026-11-04 ruling ("fix it or pin misfortune") on #2715, revive the #3906-class override on the set that actually feeds the toplevel: import nixpkgs-25 with a problems handler warning regex-pcre's broken marking through (handlers live in the importing config; an .extend overlay on the raw legacyPackages cannot change it) plus an overlay restoring regex-pcre's old build environment -- pkg-config in nativeBuildInputs and a vendored pcre 8.45 in buildInputs. Both activitywatch and misfortune now come from the fixed segment; their derivations are unchanged apart from misfortune's regex-pcre, which is hash-identical to the solo-realised override build. Temporary: removal tracked in #5447 (condition + safe-removal test named in the binding's comment). --- nixos/environment/default.nix | 69 +++++++++++++++++++++++++++++++++-- 1 file changed, 65 insertions(+), 4 deletions(-) diff --git a/nixos/environment/default.nix b/nixos/environment/default.nix index f7dde77f06..e360f9df66 100644 --- a/nixos/environment/default.nix +++ b/nixos/environment/default.nix @@ -10,6 +10,65 @@ let # bakes hyprctl into its PATH must use the matching one, or it will ship the # nixpkgs 0.56.2 hyprctl and drag a second hyprland into the closure. hyprland-master = inputs.hyprland.packages.${system}.hyprland; + # TEMPORARY (developing-today/code#5447, found via #2715): the + # nixpkgs-25 segment below takes activitywatch and + # haskellPackages.misfortune from this input, and on the current + # pin (1d060086, the nixos-unstable channel rev) misfortune's + # dependency haskellPackages.regex-pcre is marked broken under + # nixpkgs' problems framework -- honestly: nixpkgs' Haskell + # builder stopped adding the pkg-config wrapper and the + # pkgconfig-depends libraries to Haskell build environments, so + # regex-pcre's Cabal configure hard-fails (Cabal-7620) and its + # buildInputs no longer contain any pcre at all. Import the input + # with a problems handler that warns regex-pcre's broken marking + # through (handlers live in the importing config -- an .extend + # overlay on the raw legacyPackages cannot change it, and the + # stock segment refuses to evaluate) plus an overlay restoring + # regex-pcre's old build environment: pkg-config plus a minimal + # vendored pcre 8.45 (the version the old pins shipped; test + # suite disabled). Same override class as #3906, which tracks + # the master-pin instance. Drew ruled 2026-11-04 ("fix it or pin + # misfortune") to revive it here rather than keep nixpkgs-25 + # frozen. Remove this binding and use the raw legacyPackages + # again once stock regex-pcre builds on the nixpkgs-25 pin; the + # removal test is in #5447. + nixpkgs-25-fixed = import inputs.nixpkgs-25 { + inherit system; + config.problems.handlers."regex-pcre".broken = "warn"; + overlays = [ + ( + final: prev: + let + pcre_8_45 = prev.stdenv.mkDerivation { + pname = "pcre"; + version = "8.45"; + src = prev.fetchurl { + url = "mirror://sourceforge/project/pcre/pcre/8.45/pcre-8.45.tar.bz2"; + sha256 = "sha256-Ta5v3NK7C7bDe1+Xwzwr6VTadDmFNpzdrDVG4yGL/7g="; + }; + nativeBuildInputs = [ prev.updateAutotoolsGnuConfigScriptsHook ]; + configureFlags = [ + "--enable-unicode-properties" + "--disable-cpp" + "--enable-jit=auto" + ]; + hardeningDisable = [ "shadowstack" ]; + doCheck = false; + }; + in + { + haskellPackages = prev.haskellPackages.override { + overrides = self: super: { + regex-pcre = super.regex-pcre.overrideAttrs (old: { + nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ prev.pkg-config ]; + buildInputs = (old.buildInputs or [ ]) ++ [ pcre_8_45 ]; + }); + }; + }; + } + ) + ]; + }; espIdf5 = inputs.esp-dev.packages.${system}.esp-idf-full; espIdf6 = inputs.esp-dev-6.packages.${system}.esp-idf-full; mkEspIdfSystemPackage = @@ -698,7 +757,7 @@ in jdk21 androidSdk.androidsdk ]) - ++ (with inputs.nixpkgs-25.legacyPackages.${system}; [ activitywatch ]) + ++ (with nixpkgs-25-fixed; [ activitywatch ]) ++ (with inputs.nixpkgs-unstable.legacyPackages.${system}; [ # AI coding agents. Kept on the unstable channel rather than master # because unstable is cached (see the chromium note below) and these @@ -954,9 +1013,11 @@ in gtk3 gtk4 #hackgen-nf-font - # misfortune is pinned to the nixpkgs-25 set: in the fleet-pinned unstable rev its - # regex-pcre dependency is marked broken, which refuses evaluation (#3327 pin exception). - (inputs.nixpkgs-25.legacyPackages.${system}.haskellPackages.misfortune) + # misfortune is pinned to the nixpkgs-25 set (via the nixpkgs-25-fixed binding + # above, which carries the regex-pcre override -- #5447): in the fleet-pinned + # unstable rev its regex-pcre dependency is marked broken, which refuses + # evaluation (#3327 pin exception). + nixpkgs-25-fixed.haskellPackages.misfortune hasklig hledger hledger-iadd