Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modules/overlay: add assertion to make sure we're building on 23.11 or higher #220

Merged
merged 1 commit into from
Nov 19, 2023

Conversation

K900
Copy link
Contributor

@K900 K900 commented Nov 17, 2023

Avoids things like #217.

assertions = [
{
assertion = lib.versionAtLeast lib.version "23.11";
message = "Jovian NixOS currently requires Nixpkgs 23.11 or newer to build.";
Copy link
Member

@samueldr samueldr Nov 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual suggestion should be to track nixos-unstable, rather than a specific version number, I think.

Suggested change
message = "Jovian NixOS currently requires Nixpkgs 23.11 or newer to build.";
message = "Jovian NixOS currently requires tracking nixos-unstable, (from 23.11 or newer) to build.";

We will invariably soon be tracking 24.whatever whenever nixos-unstable and our usage of it breaks on 23.11. Feel free to reword like you see fit.

(otherwise I agree with the principle behind)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can always just increase the number if we start requiring a newer version. Though given we mostly all test against unstable...

@K900 K900 merged commit 66444eb into development Nov 19, 2023
6 checks passed
@K900 K900 deleted the assert-version branch November 19, 2023 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants