-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
snowsql: Add support for darwin platforms #320328
base: master
Are you sure you want to change the base?
Conversation
Result of 1 package built:
|
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.
Thanks for this, @andehen, much appreciated 👍
Please find below a few comments and suggestions for improvement.
Hopefully I've been able to explain well what the intent of the suggestions are and provide helpful context, if not please ask me to clarify 🙂
Thanks a lot for your review! Really appreciate that you spent time doing this. Writing nix packages is new to me and I learned a lot 👍 |
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.
Thanks for considering and accepting the suggestions, @andehen, much appreciated. And glad to hear you found the comments helpful.
@AndersonTorres would be willing to lend your expertise on this one too? It seems the changes in this PR might be related to what is being talked about in #325562. |
Well, this is an unfree, binary-only package, and some of observations I did before for vlc and pcsx2 do not apply. However, I believe it is not really interesting to "merge" both codes in a same expressions, because they are different. There is few to no benefit on "factoring the common terms" since the common term is too small. Further, it falls on the previous problem: the Linux and MacOS binaries follow distinct paths, and the maintainers of one have no interest in maintain the other (in a legal sense, something like "I have the tools to test and approve a PR"). Yes, I have noticed the maintainers are the same in this case, but the general principle still applies. Suppose that a a third person wants to contribute by sending a PR updating only the Apple package, since theey has no Linux to test it. It would be counterproductive to block such a PR. |
I find this 👆 very helpful as a general guidance, thanks @AndersonTorres. Regarding maintainers, would setting the maintainers by platforms be useful? E.g.: meta {
# …
maintainers = with lib.maintainers; [
] ++ lib.optionals stdenv.isDarwin [
afh
] ++ lib.optionals stdenv.isLinux [
AndersonTorres
];
} I'm not sure I completely understand your example of a third person wanting to contribute to the Apple package. Let me rephrase in my own words to see if I did: |
Description of changes
Add support for darwin platforms (x86-64 and arm64)
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.