-
-
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
nlohmann_json_schema_validator: init at 2.3.0 #275224
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.
Hi !
Thanks for your first contribution!
Things left to do:
- Move your file in
pkgs/by-name/...
and remove the entry fromall-packages.nix
- The PR title should be:
<name>: init at <version>
- The commit message should be identical to the PR title
- It would be nice to have you as maintainer, therefore a commit to add yourself in the maintainers file (
maintainers: add br337
) needs to be made before the current commit. - The
pname
looks wonky, why is it containing the name of one of its dependency ?
Let me know if you need some help!
Hi, I'm sorry if the following questions will seem kind of silly but I struggle with some things regarding this PR:
|
This is the new package name convention (RFC140). Maybe you should have a look and see if there are already libraries in there. If yes, then I would kindly ask you to follow that pattern.
Correct.
Yes, you can make a commit within this PR with you added in the maintainers list.
Fair enough, since I don't know anything in there, I'll trust you in there. |
1084396
to
a9bf124
Compare
19aea87
to
84af350
Compare
Fixed attribute order in maintainers list
86bbbd3
to
0661c76
Compare
Should I also squash the last commits? |
Correct. |
0f7813b
to
c35b231
Compare
Done |
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.
Congrats for your first PR, welcome to the family !
It LGTM, but let's wait for someone else's review.
Keep PRs coming!
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 275224
run on x86_64-linux 1
1 package built:
- nlohmann_json_schema_validator
Runs fine, LGTM. Just a nit
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 a small thing :^)
1 package built: Result of 1 package built:
|
2b61b89
to
162a921
Compare
162a921
to
f6b24b3
Compare
Changes are now squashed |
meta = { | ||
description = "JSON schema validator for JSON for Modern C++"; | ||
homepage = "https://github.com/pboettch/json-schema-validator"; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ br337 ]; | ||
platforms = lib.platforms.all; | ||
}; |
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.
please add meta.mainProgram
, since the package adds multiple binarys and things like lib.getExe
or nix run
won't work without it.
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.
Unless there is a clear binary the package provides which is the one users expect to be run, i oppose setting mainProgram
. In such cases one is expected to use lib.getExe'
or nix shell PKG -c binary ...
.
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.
Being able to disable the bin/${pname}
fallback behavior of lib.getExe
with something like mainProgram = null
would be great, but implementing that that is outside the scope of this PR
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.
Unless there is a clear binary the package provides which is the one users expect to be run, i oppose setting mainProgram. In such cases one is expected to use lib.getExe' or nix shell PKG -c binary ....
I would have set it to json-schema-validate
since that's the thing in the package name. But feel free to merge if you think otherwise, the package looks good to me except 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.
So should I implement this change now or should I resolve the issue without further changes?
Let's not wait too long before getting feedback, especially on a first contributor PR. Thanks for your contribution, keep PRs coming! |
Description of changes
This package is a JSON schema validator for Modern C++. More information on it here.
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.