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

linux-firmware guard fails probably due to new versioning #678

Closed
chaoflow opened this issue Jul 27, 2023 · 4 comments · Fixed by #680
Closed

linux-firmware guard fails probably due to new versioning #678

chaoflow opened this issue Jul 27, 2023 · 4 comments · Fixed by #680

Comments

@chaoflow
Copy link
Member

https://github.com/NixOS/nixos-hardware/blob/ba9650b14e83b365fb9e731f7d7c803f22d2aecf/lenovo/thinkpad/p14s/amd/gen2/default.nix#L15C97-L15C111

Current linux-firmware version is "2023-07-24"

@SuperSandro2000
Copy link
Member

NixOS/nixpkgs#245305

@MangoIV
Copy link

MangoIV commented Jul 28, 2023

is there a solution for this? afaict it originates from nixpkgs way of comparing "versions" so I guess we cannot really have backwards compatibility; would we want to remove the guards?

@samueldr
Copy link
Member

This would be intrinsically fixed the next time this package gets a version tag, but break again once it switches to another untagged release.

The conditional could check for lib.hasPrefix "unstable" linux-firmware.version and assume any untagged release is fresh enough.

Also, is this still required? Are there any supported NixOS releases matching lib.versionOlder pkgs.linux-firmware.version "20230210"? The simpler solution could be to just delete the check.

@MangoIV
Copy link

MangoIV commented Jul 28, 2023

The latter would also be my suggestion.

@samueldr samueldr linked a pull request Jul 29, 2023 that will close this issue
2 tasks
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 a pull request may close this issue.

4 participants