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

chore: hardware.opengl -> hardware.graphics #503

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

getchoo
Copy link

@getchoo getchoo commented Jun 26, 2024

As of NixOS/nixpkgs#320228, hardware.opengl was renamed to hardware.graphics, causing definitions of the former to trigger an evaluation warning on the current nixos-unstable channel. Aliases are applied conditionally for these new options to continue supporting 24.05

edit: fixes #498

Comment on lines +2 to +5
imports = lib.optionals (lib.versionOlder lib.version "24.11pre") [
(lib.mkAliasOptionModule [ "hardware" "graphics" "enable" ] [ "hardware" "opengl" "enable" ])
(lib.mkAliasOptionModule [ "hardware" "graphics" "extraPackages" ] [ "hardware" "opengl" "extraPackages" ])
];
Copy link
Member

Choose a reason for hiding this comment

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

You are sure that this is not causing more problems?

Copy link
Author

@getchoo getchoo Jun 26, 2024

Choose a reason for hiding this comment

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

the worst one i could think of is 24.05 users thinking hardware.graphics is an actual option when it's not - but other than that, no

what's basically the same exact method is also used here in nixos-hardware

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.

option hardware.opengl.enable renamed in upstream
2 participants