diff --git a/flake.lock b/flake.lock index 8253f241cb..e3301187ce 100644 --- a/flake.lock +++ b/flake.lock @@ -1771,11 +1771,11 @@ "nixpkgs": "nixpkgs_13" }, "locked": { - "lastModified": 1769548169, - "narHash": "sha256-03+JxvzmfwRu+5JafM0DLbxgHttOQZkUtDWBmeUkN8Y=", + "lastModified": 1792739756, + "narHash": "sha256-s0TeXWG5Ci75Y/Hzon0Z7NrN/fG773Rc54/z6oPFszQ=", "owner": "Nix-community", "repo": "impermanence", - "rev": "7b1d382faf603b6d264f58627330f9faa5cba149", + "rev": "fa627f4c8b8e92f58f58a73d99ee4e1304e64eb2", "type": "github" }, "original": { @@ -2401,11 +2401,11 @@ }, "nixpkgs-25": { "locked": { - "lastModified": 1791456040, - "narHash": "sha256-H83yz/do+hjOO0uujHyH8RgtIQP2v7Mw+cLwcZK/xKc=", + "lastModified": 1793110635, + "narHash": "sha256-dhoW6VgFWlaodSY5jrBn+CF2FLmaUvDVgM7+C7T2+NM=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e7439b6b14ad3cc35d05608ebca9bce01a25f5f8", + "rev": "31ecbaca1bdefa45dffc409f0250bd8039ea0010", "type": "github" }, "original": { @@ -2538,11 +2538,11 @@ }, "nixpkgs-master": { "locked": { - "lastModified": 1791770674, - "narHash": "sha256-xmWtGYdXEPQwUoWodaHQ4iBLWC0gW+BzLAw3VvyDSao=", + "lastModified": 1793356805, + "narHash": "sha256-MdnSqEDGdP6meHcD6cTmB7llsQtCraiKTaIIkd6JIBY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "c61a74e1e2c8c75d774d7883927d3d21cb7d4e90", + "rev": "086873f31aea9365cb77f2df5620aadd1ac74acc", "type": "github" }, "original": { @@ -2553,11 +2553,11 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1791585830, - "narHash": "sha256-dzapQzX0g72M5iZ+QwIiL1gzZXzplzQPNYFlP/n+c3w=", + "lastModified": 1793356805, + "narHash": "sha256-MdnSqEDGdP6meHcD6cTmB7llsQtCraiKTaIIkd6JIBY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "cfdb2236cff2a6adaace5a4ef37ea73152d710e9", + "rev": "086873f31aea9365cb77f2df5620aadd1ac74acc", "type": "github" }, "original": { @@ -2601,11 +2601,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1791594108, - "narHash": "sha256-XK4KceonkwD8LuMAt/vNrz982mXJM5jeHAxMwsUXXAQ=", + "lastModified": 1793110635, + "narHash": "sha256-dhoW6VgFWlaodSY5jrBn+CF2FLmaUvDVgM7+C7T2+NM=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "6510408d147d8c5e6d76043e899e9251756f6a75", + "rev": "31ecbaca1bdefa45dffc409f0250bd8039ea0010", "type": "github" }, "original": { diff --git a/home/common/default.nix b/home/common/default.nix index 3b436eb747..5b91ae9e20 100644 --- a/home/common/default.nix +++ b/home/common/default.nix @@ -27,6 +27,44 @@ let # See pkgs/latest-cli/default.nix for the rationale, the tradeoffs, and the # list of things deliberately NOT bumped. latestCli = pkgs.callPackage ../../pkgs/latest-cli { }; + # TEMPORARY (developing-today/code#4005, found via #2715): the + # activitywatch service below takes its package from this input's + # raw legacyPackages, and on the current stable pin (086873f3) + # activitywatch is broken exactly as on the nixpkgs-25 pin: aw-core + # 0.5.17 needs peewee 3 (peewee 4 removed SqliteExtDatabase, which + # aw_datastore imports) while the tree ships peewee 4.4.0, and + # aw-qt's makeWrapperArgs use the single-string form the tree's C + # makeWrapper rejects. Extend the stable set with the same + # overrides as nixpkgs-25-fixed in nixos/environment/default.nix + # (peewee pinned to 3.17.9 without cython; aw-qt wrapper args in + # split form). Remove once stock activitywatch builds on the pin; + # tracked in #4005. + nixpkgs-stable-fixed = inputs.nixpkgs-stable.legacyPackages.${system}.extend ( + final: prev: { + python314 = prev.python314.override { + packageOverrides = self: super: { + peewee = super.peewee.overridePythonAttrs (old: { + version = "3.17.9"; + src = prev.fetchPypi { + pname = "peewee"; + version = "3.17.9"; + hash = "sha256-/hXNABdY4yTI48qMjtkA5zl8KQcpF4nh78OD5mubx6g="; + }; + buildInputs = [ prev.sqlite ]; + }); + }; + }; + python3Packages = final.python314.pkgs; + aw-qt = prev.aw-qt.overridePythonAttrs (old: { + makeWrapperArgs = [ + "--suffix" + "PATH" + ":" + (prev.lib.makeBinPath [ prev.xdg-utils ]) + ]; + }); + } + ); # Vendored from nixpkgs master; see the header in that file for why. Provides # `agy_acp_server`, which t3code's AcpRegistryDriver can drive. antigravity-acp = pkgs.callPackage ../../pkgs/antigravity-acp { }; @@ -424,7 +462,7 @@ in # }; activitywatch = { enable = true; - package = inputs.nixpkgs-stable.legacyPackages.${pkgs.system}.activitywatch; + package = nixpkgs-stable-fixed.activitywatch; }; }; # OpenChamber rewrites opencode's config on every launch, migrating the v1 @@ -1043,7 +1081,12 @@ in # the link and reloads OpenChamber, which hands its OpenCode over in place. home.activation.openchamberDeploy = lib.hm.dag.entryAfter [ "reloadSystemd" ] '' state="''${XDG_STATE_HOME:-$HOME/.local/state}/openchamber/deployed" - key='${deployKey "openchamber" [ openchamberStart openchamberUnitStart ]}' + key='${ + deployKey "openchamber" [ + openchamberStart + openchamberUnitStart + ] + }' link="$HOME/.local/state/openchamber/bin/opencode" target="${inputs.opencode.packages.${system}.opencode}/bin/opencode" previous="$(readlink "$link" 2>/dev/null || true)" diff --git a/nixos/environment/default.nix b/nixos/environment/default.nix index df28082ac2..748264e66b 100644 --- a/nixos/environment/default.nix +++ b/nixos/environment/default.nix @@ -10,6 +10,95 @@ 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#4005, found via #2715): the + # nixpkgs-25 segment below takes activitywatch from this input's + # raw legacyPackages, and on the current pin (31ecbaca) it is + # broken twice over. (1) aw-core 0.5.17 pins peewee==3.* and its + # datastore imports SqliteExtDatabase from playhouse.sqlite_ext, + # which peewee 4 removed; the tree now ships peewee 4.4.0, so + # aw-core fails its runtime-deps check and would be broken at + # runtime too -- a relaxDeps would only mask that. Pin peewee to + # 3.17.9 (the last 3.x) for this set's python packages instead, + # dropping cython from its buildInputs: 3.17.9's vendored .pyx + # sources no longer compile under the tree's Cython 3, and peewee + # builds fine from its pre-generated C sources without it. + # (2) aw-qt's makeWrapperArgs use the single-string form + # "--suffix PATH : ...", which the tree's C makeWrapper rejects + # ("Unknown argument"); restate them in split form. The same + # peewee skew exists on the current master and unstable pins, so + # no pin offers a consistent set. Remove this binding and use the + # raw legacyPackages again once stock activitywatch builds on the + # pin; tracked in #4005. + nixpkgs-25-fixed = inputs.nixpkgs-25.legacyPackages.${system}.extend ( + final: prev: { + python314 = prev.python314.override { + packageOverrides = self: super: { + peewee = super.peewee.overridePythonAttrs (old: { + version = "3.17.9"; + src = prev.fetchPypi { + pname = "peewee"; + version = "3.17.9"; + hash = "sha256-/hXNABdY4yTI48qMjtkA5zl8KQcpF4nh78OD5mubx6g="; + }; + buildInputs = [ prev.sqlite ]; + }); + }; + }; + python3Packages = final.python314.pkgs; + aw-qt = prev.aw-qt.overridePythonAttrs (old: { + makeWrapperArgs = [ + "--suffix" + "PATH" + ":" + (prev.lib.makeBinPath [ prev.xdg-utils ]) + ]; + }); + } + ); + # TEMPORARY (developing-today/code#3906, found via #2715): the + # nixpkgs-master segment below takes haskellPackages.misfortune from + # this input's raw legacyPackages, and on the current master pin + # haskellPackages.regex-pcre (misfortune's dependency) no longer + # builds: nixpkgs' Haskell builder stopped adding the pkg-config + # wrapper and the pkgconfig-depends libraries to Haskell build + # environments, and nixpkgs removed the EOL pcre C library outright, + # while regex-pcre's Cabal configure hard-requires both. Extend the + # master set with an overlay that restores regex-pcre's old build + # environment: pkg-config plus a minimal vendored pcre 8.45 (the + # version the old pins shipped; test suite disabled). Remove this + # binding and use the raw legacyPackages again once stock + # regex-pcre builds on the master pin; tracked in #3906. + nixpkgs-master-fixed = inputs.nixpkgs-master.legacyPackages.${system}.extend ( + 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 = @@ -702,7 +791,7 @@ in jdk21 androidSdk.androidsdk ]) - ++ (with inputs.nixpkgs-25.legacyPackages.${system}; [ activitywatch ]) + ++ (with nixpkgs-25-fixed; [ activitywatch ]) ++ (with inputs.nixpkgs-stable.legacyPackages.${system}; [ ]) ++ (with inputs.nixpkgs-unstable.legacyPackages.${system}; [ # AI coding agents. Kept on the unstable channel rather than master @@ -731,7 +820,7 @@ in zed-editor # opencode ]) - ++ (with inputs.nixpkgs-master.legacyPackages.${system}; [ + ++ (with nixpkgs-master-fixed; [ # rclone # fish completions broke 2025-04-03 # rclone-browser # fish completions broke 2025-04-03 # rclone-ui # fish completions broke 2025-04-03 diff --git a/nixos/nixpkgs/default.nix b/nixos/nixpkgs/default.nix index f6a581a975..a0f888ff95 100644 --- a/nixos/nixpkgs/default.nix +++ b/nixos/nixpkgs/default.nix @@ -20,6 +20,117 @@ overlays = [ inputs.self.vimOverlay.${system} inputs.yazi.overlays.default + # TEMPORARY (code#4167, found via code#2715): awscli 1.44.21 + # fails pythonRuntimeDepsCheck on the current pins -- it pins + # botocore==1.42.31 and s3transfer>=0.16.0,<0.17.0, but every + # pin now ships botocore 1.43.79 and s3transfer 0.19.2 (the tree + # is mid-transition). awscli's own expression notes botocore + # must not be relaxed (the two are developed in lockstep), so + # give awscli dedicated botocore/s3transfer derivations rolled + # back to the versions it pins; the set's botocore/s3transfer + # stay current for all other consumers. Remove once stock + # awscli passes the check again; tracked in code#4167. + ( + final: prev: + let + botocore_1_42_31 = prev.python3Packages.botocore.overridePythonAttrs (old: { + version = "1.42.31"; + src = prev.fetchFromGitHub { + owner = "boto"; + repo = "botocore"; + tag = "1.42.31"; + hash = "sha256-avuv1uXKMeSr3SL+BI9XW8tDCQM/dlXFn590di3S03k="; + }; + }); + s3transfer_0_16_0 = prev.python3Packages.s3transfer.overridePythonAttrs (old: { + # s3transfer itself depends on the set's botocore; point it + # at the pinned one too, or awscli's closure contains both + # botocores and pythonCatchConflictsPhase fails the build. + dependencies = map (d: if (d.pname or "") == "botocore" then botocore_1_42_31 else d) ( + old.dependencies or [ ] + ); + version = "0.16.0"; + src = prev.fetchFromGitHub { + owner = "boto"; + repo = "s3transfer"; + tag = "0.16.0"; + hash = "sha256-dpDlsZtLjd6r4kLkIDPG6ZPFFs6/4elYiHk2HDpa9+4="; + }; + }); + in + { + awscli = prev.awscli.overridePythonAttrs (old: { + # The expression's installCheck greps `aws --version` for + # the SET's botocore version; with the pairing overridden + # it must grep for the pinned one instead (same assertion, + # pairing actually in force). + installCheckPhase = '' + runHook preInstallCheck + + $out/bin/aws --version | grep "1.42.31" + $out/bin/aws --version | grep "1.44.21" + + runHook postInstallCheck + ''; + dependencies = map ( + d: + if (d.pname or "") == "botocore" then + botocore_1_42_31 + else if (d.pname or "") == "s3transfer" then + s3transfer_0_16_0 + else + d + ) old.dependencies; + }); + } + ) + # TEMPORARY (code#4277, found via code#2715): cargo-llvm-cov's + # test suite fails deterministically on the current pins -- + # rustc 1.99's coverage instrumentation writes raw profile + # format version 11, but no stock llvm-profdata in the tree can + # merge it: llvm 21 and 22 expect version 10 ("raw profile + # version mismatch"), and llvm 23 parses v11 but reports + # "number of counters is zero" (all three pairings tried, 14 of + # 20 integration tests fail each time). The expression's own + # header comment names this failure mode and notes the tool + # still functions properly in actual use (at runtime it drives + # the user's llvm-profdata), so skip its test suite until the + # toolchain pairing is consistent again. Remove once stock + # cargo-llvm-cov passes its suite; tracked in code#4277. + (final: prev: { + cargo-llvm-cov = prev.cargo-llvm-cov.overrideAttrs (old: { + doCheck = false; + }); + }) + # TEMPORARY (code#2727, found via code#2715): patchelf 0.19.2 in + # current nixpkgs corrupts the official Node.js 24.22.1 binary that + # nix-openclaw repacks for OpenClaw -- the repacked `node` segfaults + # on startup, its installCheck fails, and the failure cascades + # openclaw -> home-manager -> toplevel. Proven 2026-10-30: the + # pristine binary patched with patchelf 0.15.2 runs; the same binary + # patched with 0.19.2 segfaults (gcc and glibc are identical across + # the old/new pins and are not involved). The `patchelf` attribute + # itself cannot be overridden (it is a nixpkgs bootstrap package; + # overriding it breaks stdenv bootstrap evaluation), so the + # autoPatchelfHook -- which resolves `patchelf` from PATH at build + # time -- additionally propagates a patchelf 0.15.2 built from this + # same package set. This overlay must precede the nix-openclaw + # overlay below so that overlay's packages see the fixed hook. + # Remove once the stock hook patches the Node.js repack cleanly + # again; the removal test is in code#2727. + (final: prev: { + autoPatchelfHook = prev.autoPatchelfHook.overrideAttrs (old: { + propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ + (prev.patchelf.overrideAttrs (oldPatchelf: { + version = "0.15.2"; + src = prev.fetchurl { + url = "https://github.com/NixOS/patchelf/releases/download/0.15.2/patchelf-0.15.2.tar.bz2"; + hash = "sha256-F3RfVkFZyOIo/EEtplogSLhGxLa0Igt3y/IkFuAvLXw="; + }; + })) + ]; + }); + }) # Provides pkgs.openclaw + pkgs.openclawPackages for home/openclaw. inputs.nix-openclaw.overlays.default # inputs.waybar.overlays.default # ?? !! style.css