-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
hunspellDicts.ro-ro: init at 3.3.10 #313374
Conversation
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've updated the title, and you can update commit message yourself. |
Currently trying to do that with no success, I was trying to follow this to no avail. Any advice? |
Also if you are using |
Done. So I was just not brave enough to use any sort of Also, when will this be in nixpkgs-unstable? Meaning, when can I stop using my nixpkgs fork for this package? |
@Aleksanaa can this be merged now? |
unzip $src ${dictFileName}.aff ${dictFileName}.dic ${readmeFile} -d ${dictFileName} | ||
''; | ||
|
||
meta = with lib; { |
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.
Remove with lib
it's antipattern. #208242
You also use with lib.licenses below so it make it even more redundant.
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.
Sorry. I was unsure of the code principles, I just followed a couple of other dictionaries I saw in that file. I'll make my code work without it if is needed.
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.
Done: 64fc53a
description = "Hunspell dictionary for ${shortDescription} from rospell"; | ||
homepage = "https://sourceforge.net/projects/rospell/"; | ||
license = with lib.licenses; [ gpl2 lgpl21 mpl11 ]; | ||
#maintainers = with maintainers; [ Andy3153 ]; |
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.
You could also remove this line if you don't plan to add yourself as maintainer.
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 added that at first but then commented it out because I was unsure whether maintainers
means package maintainers (me in this case) or maintainer of the program (where my package downloads from). If it means the first one, I'll uncomment that line.
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.
First one. You need to add yourself to maintainers list if you already haven't in order to add yourself as package maintainer. I recommend creating separate PR for this
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.
@Andy3153 greetings, can you change commit order? maintainers: add Andy3153 needs to happen before you use that attribute |
@kirillrdy Greetings, should be in the correct order now |
@Andy3153 sorry it may seem annoying at first, but nixpkgs is trying to maintain atomic commits, this is very useful for automatic git bisects. because of this first commit violates CI meta check https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#meta-attributes . meta.maintainers must be set so i would ask you to squash 1st and 3rd commits, then adding yourself to maintainers list needs to happen first. as for lib removal than can be separate commit or it can be squashed with init commit appreciate your cooperation |
@kirillrdy Here you go. Squashed init, maintainer and removal of |
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 the contribution; couple points of feedback:
meta = { | ||
description = "Hunspell dictionary for ${shortDescription} from rospell"; | ||
homepage = "https://sourceforge.net/projects/rospell/"; | ||
license = with lib.licenses; [ gpl2 lgpl21 mpl11 ]; |
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.
gpl2 identifier is deprecated, should be gpl2Only or gpl2Plus in accordance with upstream
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.
just noticed, same for lgpl21
|
||
src = fetchurl { | ||
url = "https://downloads.sourceforge.net/rospell/${fileName}"; | ||
sha256 = "7f128d64ea06c9e6711c30b118c0afeefb014d8f33c92daccdf455aba2d04519"; |
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.
sha256 = "7f128d64ea06c9e6711c30b118c0afeefb014d8f33c92daccdf455aba2d04519"; | |
hash = "sha256-fxKNZOoGyeZxHDCxGMCv7vsBTY8zyS2szfRVq6LQRRk="; |
SRI hash is preferred
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'm a little busy but I'll solve these two complaints soon
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.
Currently having trouble with the SRI hash. How do I generate one more exactly? Just replacing the hash in there with what I get from sha256sum
does not work.
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.
Set it to empty string, rebuild, get the hash from that error. Never use sha256sum
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.
Done. Anything else needed? Or any squashes? I got the commit history a bit long
Rebase (squash) those following commits into one commit:
And for merge conflict, don't merge master to branch, use rebase instead. (copied from another PR):
|
add a Romanian dictionary for Hunspell from rospell on Sourceforge
@heisfer I think I've done everything right, should be done |
Seems okay (on the surface) |
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.
Result of nixpkgs-review pr 313374
run on x86_64-linux 1
5 packages built:
- hunspellDicts.ro-ro (hunspellDicts.ro_RO)
- rstudio
- rstudio-server
- rstudioServerWrapper
- rstudioWrapper
Thank you ! |
Description of changes
Looking at other dictionary packages in the file I modified and at the PKGBUILD of the Arch Linux version of basically the same package (just to see where to get the dictionary from), I created a package that ships a Romanian dictionary for Hunspell.
Closes #315849
Things done
(not really required, no compilation going on, just downloading a zip file containing no binaries off the internet)
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.