build(nix): drop support for outdated nixpkgs revisions #402
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
#374 added support for nixpkgs revisions containing umu-launcher 1.2.0+, this PR drops support for nixpkgs revisions with older versions of the umu-launcher package.
Changes
pyzstd.nix
old-unwrapped.nix
versionAtLeast "1.2.0"
assertionNew assertion
The new assertion will likely remain indefinitely, with its minimum version being bumped whenever the downstream nixpkgs package adds some implementation detail that our flake package depends on. If the downstream package ever adds something we depend on without bumping its version, the assertion would have to check that explicitly, e.g. by checking what attributes exist on the package.
As an example of the error message users would see, you can view this PR's CI failure from before the lockfile was updated 😁
Grace period
This PR was initially a draft, because we want to grant end-users a grace period where their nixpkgs and umu inputs are allowed to be out-of-sync.
The grace period here shouldn't need to be very long though, unlike the renames done by #345. Those renames could trip up users who don't update their inputs often; some users likely still haven't updated their inputs since before #345.
In contrast, a user updating their umu input without updating their nixpkgs input is less likely. Also, the assertion message should be enough to detect and help resolve the issue.
cc @beh-10257 @LovingMelody @R1kaB3rN