Skip to content

Temporary workarounds

The framework tracks nixpkgs unstable: a package breaks, a PR is slow. Every workaround added while waiting for the upstream fix is registered in dnf/config/workarounds.nix, and removed along with its entry.

kindWorkaround
overlayFix in dnf/lib/overlays/
backportModule copied to dnf/backports/nixos/
pinPackage taken from another nixpkgs
inlineWorkaround in a module
insecurepermittedInsecurePackages entry
dnf/config/workarounds.nix
posthog = {
kind = "overlay";
files = [ "lib/overlays/posthog.nix" ];
reason = "posthog marked broken since mcp 2: aider-chat refuses to evaluate";
upstream = "NixOS/nixpkgs#578265"; # PR ou issue attendue
package = "python3Packages.posthog"; # sondé sur unstable
dropWhen = "nixpkgs#578265 in the locked nixpkgs";
since = "2026-10-27";
};

upstream, package and inputs (flake inputs to remove along with it) are optional. Omit package when a green build does not prove the fix (a runtime crash, for example).

In dnf/ or at the root of a co-development project:

Fenêtre de terminal
just workarounds
  • upstream: status of the PR or issue, via gh. A merged nixpkgs PR is compared with the locked revision.
  • unstable: is the package, evaluated against the locked nixpkgs, built by Hydra 🡕? For a pin, the stable version is shown alongside.
gimp · overlay · since 2026-06-17 [drop?]
why gimp build breaks under `__structuredAttrs`
unstable gimp 3.2.6: built by Hydra
drop when Hydra builds unstable gimp
files lib/overlays/gimp.nix

[drop?] flags a lead, not a verdict: dropWhen decides.

  1. Check the dropWhen condition, rebuilding an affected host if needed.

  2. Delete the workaround: files in files, wiring (overlay in dnf/lib/overlays/default.nix, backport in dnf/lib/flake/mk-configuration.nix), inputs of dnf/flake.nix.

  3. Unregister: remove the entry from the registry.

  4. Validate: just clean, just unit-tests, then commit.

A broken service or library: overlay. A non-critical leaf application (game, office, education) already fixed upstream: commented line in its module, inline entry. No local build in the meantime.

#(lib.mkIf g3d veloren) # Minecraft like -> TMP: cargo system libs, back with nixpkgs#585129

An overlay that exposes a third-party flake’s package (talon, claude-code) is not a fix: add it to permanentOverlays, in dnf/tests/unit/config/workarounds_test.nix.

Upstream statuses are skipped, the rest of the report is displayed. gh auth login restores them.