-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
stdenv: Add isPc helper to replace (isi686 || isx86_64) #7846
Conversation
|
isIA? isIntelArch? On Fri, May 15, 2015, 7:36 AM Cody Opel notifications@github.com wrote:
|
|
@edolstra: Why "isX86" and not "isx86" when we have "isx86_64"? |
camelCase dictates starting a non-initial word with a capital letter. So |
So, the situation is to choose any two from: consistency, camelCase rule, and backward compatibility? |
No we can also fix all the isx86_64 occurrences, and we can add aliases as On Fri, May 15, 2015 at 10:58 AM Vladimír Čunát notifications@github.com
|
other options for that one are isX8664 (6 capitalized is 6) or isX86-64 or On Fri, May 15, 2015 at 12:55 PM Wout Mertens wout.mertens@gmail.com
|
Yes, dash is probably more common, so |
Please no dashes in variable names! |
I'm just curious, why should only package attributes use dashes? |
The shed should be purple!!! |
An idea I had for simplify things would be use something like:
This would use a generic base identifier ( |
IMO the name i686 implies that the HW shouldn't be too old and e.g. support MMX and some other features. For a long time I meant to ask why we have various functions for platform categorization in lib/systems.nix and then in stdenv we just redefine the same groups without using the previous implementation. Perhaps I misunderstand the purpose of |
It's a relatively common operation to compare the current platform to x86 platforms of both bitness.
Changed to |
It's a relatively common operation to compare the current platform to PC platforms, i.e. x86 compatible platforms.
Bikeshedding: maybe there's a better name than
isPc
?