-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
sheldon: enable on unix platforms #339149
Conversation
Welcome to nixpkgs! Please follow the commit message guidelines in CONTRIBUTING.md. You should also edit the PR title to match the new commit message. As an example, your commit message can be something like this: |
a6c35a3
to
788faf0
Compare
Sorry, I have corrected the commit message and PR title. |
@yasunori0418 We must ask the maintainers if they can maintain darwin. If not, you can help with this. |
The Mac book I'm currently using is not personally owned but by a company, so it's difficult to continue using it for package maintenance and become a maintainer... |
@@ -61,7 +61,6 @@ rustPlatform.buildRustPackage rec { | |||
homepage = "https://github.com/rossmacarthur/sheldon"; | |||
license = with licenses; [ mit ]; | |||
maintainers = with maintainers; [ seqizz ]; | |||
platforms = platforms.linux; |
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.
Platforms should still be set and to include darwin and other unix systems platforms.unix
or to inclide non unix systems could also be set to platforms.all
platforms = platforms.unix;
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.
Thank you for your review.
I think platforms.unix
is better because sheldon has binary releases for linux and mac.
I will try building again with this fix.
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.
There's no reason to artificially restrict the platforms, IMO it should stay unset and use the defaults from the rust builder.
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.
Interesting, did not know that the rust builder sets them by default.
Increasing platform availability should not be hold back by a maintainer not being able to support it, if it does not increase maintenance burden by too much, which this pr is definitely not. |
@jopejoe1 It is not the reason why we don't merge this PR. However, it is better if someone test app on darwin every time. ofborg only reports whether it builds successfully. |
Result of 1 package built:
|
Of course, it's always better to tested for as many platforms as possible, but it's definitely not a requirement that updates need to be tested for all platforms or that the there needs to be a maintainer to all supported platforms. |
Result of 1 package built:
|
Based on the above comment, I tried changing |
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.
Wait for nixpkgs committer.
Please squash your commits. |
2433b4f
to
8a5f97e
Compare
Delete unnecessary platforms specification because installation is not possible in mac environment
8a5f97e
to
5c69e52
Compare
If it breaks on Darwin and pinging |
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.
I agree with @eclairevoyant 's comment and suggest removing meta.platforms
, but I don't think it's wrong to specify platforms.unix
explicitly, since this package targets unix shells, as @emilazy said.
In any case, I don't think this is a blocker, so I'll merge it.
Thanks for your contribution! Welcome to nixpkgs🎉
…is not possible in mac environment
Description of changes
When installing sheldon on x86_64-darwin, it failed because the platform was not supported.
So, when I tried building it directly at hand, I was able to build it in the environment I was using, so I don't think it is necessary to specify platforms.
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.