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.
Registered workarounds
Section titled “Registered workarounds”kind | Workaround |
|---|---|
overlay | Fix in dnf/lib/overlays/ |
backport | Module copied to dnf/backports/nixos/ |
pin | Package taken from another nixpkgs |
inline | Workaround in a module |
insecure | permittedInsecurePackages entry |
An entry
Section titled “An entry”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).
Tracking upstream status
Section titled “Tracking upstream status”In dnf/ or at the root of a co-development project:
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.
Remove a workaround
Section titled “Remove a workaround”-
Check the
dropWhencondition, rebuilding an affected host if needed. -
Delete the workaround: files in
files, wiring (overlay indnf/lib/overlays/default.nix, backport indnf/lib/flake/mk-configuration.nix),inputsofdnf/flake.nix. -
Unregister: remove the entry from the registry.
-
Validate:
just clean,just unit-tests, then commit.
Overlay or suspension?
Section titled “Overlay or suspension?”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#585129A permanent overlay?
Section titled “A permanent overlay?”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.
Without gh?
Section titled “Without gh?”Upstream statuses are skipped, the rest of the report is displayed. gh auth login
restores them.