-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
lib.systems.inspect: deprecate isEfi #264297
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,9 @@ stdenv.mkDerivation rec { | |
description = "GNU EFI development toolchain"; | ||
homepage = "https://sourceforge.net/projects/gnu-efi/"; | ||
license = licenses.bsd3; | ||
platforms = platforms.linux; | ||
platforms = with lib.systems.inspect.patterns; map (pat: pat // isLinux) ([ | ||
isArmv6 ] ++ isArmv7 ++ [ isArmv8 isRiscV isx86 | ||
]); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using doubles strings rather than patterns would make the code here less complicated, and have the same effect, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought @Ericson2314 wanted to get rid of double strings but maybe I misinterpreted him. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not something we're going to move away from one package at a time regardless… There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Not exactly. The Also double-strings are icky gross.
I dunno, isn't incremental migration the easy way to do it? |
||
maintainers = with maintainers; [ ]; | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This problem was introduced by
lib.systems.equals
#237512After that PR, we are no longer able to deprecate boolean-valued attributes of platform objects because
lib.systems.equals
is too strict.We could get back to using
==
, which is lazy enough to handle this correctly, by merging