-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
curl: gate darwin workarounds behind stdenv.isDarwin to make life on linux easier #169331
Conversation
…linux easier Closes NixOS#3382
I prefer patching only those that are affected as well, however, I know there are those that have a different view. Their view is to apply it for everyone because that way you can detect easily when a patch does not apply anymore and it will more likely be fixed. |
@@ -136,6 +131,12 @@ stdenv.mkDerivation rec { | |||
++ lib.optionals stdenv.hostPlatform.isWindows [ | |||
"--disable-shared" | |||
"--enable-static" | |||
] ++ lib.optionals stdenv.isDarwin [ |
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.
Wouldn't it be better to use stdenv.hostPlatform.isDarwin
instead to take care of the cross-compiling cases here?
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.
isDarwin is an alias to hostPlatform.isDarwin https://github.com/nix-community/home-manager/blob/master/tests/default.nix#L35-L36
Not related to this PR, but I think we need to have a clearer instance about Darwin. It is clearly a "best effort" platform that causes tons of headaches thanks to the inability of Apple of supplying good sources where we can base our Not criticizing the excellent work of the Darwin maintainers, but it really is a platform that is a PITA to work with. |
Normally this is the case but since the flags make the linux experience actually worse I think we can make an exception here. |
…
Closes #3382
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes