Chain the steps

Wait for a fix to merge, ship and reach your distro, with one blocker.

Real waits come in chains. Your patch can go once the PR merges, the fix ships in a tag, and nixpkgs picks up that tag. Three blockers would turn bumpable one by one, and none of them alone means the patch can go. One chain does.

canibump.toml
[[blocker]]
id = "libfoo-crash"
note = "drop the libfoo crash patch"

[[blocker.all]]
id = "merged"
state = "github:libfoo/libfoo#412"

[[blocker.all]]
id = "released"
reached = "github:libfoo/libfoo#412"
in = { tags = "v*" }

[[blocker.all]]
id = "packaged"
version = "repology:libfoo"
repo = "nix_unstable"
at-least = { step = "released" }

[[blocker.all]] holds when every step holds, checked in order. It stops at the first step that doesn’t and names it.

$ canibump
waiting   libfoo-crash  packaged: repology:libfoo in nix_unstable is at 2.4.0, waiting for v2.4.1

The released step found the tag, and at-least = { step = "released" } hands it to the next step. nixpkgs moves, and the whole chain holds.

$ canibump --refresh
bumpable  libfoo-crash  all 3 steps hold; repology:libfoo in nix_unstable is at 2.4.1, at least v2.4.1 (drop the libfoo crash patch)

Rules