-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
cadical: init at 1.2.1 #83224
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
cadical: init at 1.2.1 #83224
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.
Reviewed points
- package name fits guidelines
- package version fits guidelines
- package build on x86_64-linux
- executables tested on x86_64-linux
- all depending packages build (ran
nix-shell -p nixpkgs-review --run "nixpkgs-review pr 83224"
)
Possible improvements
Maybe remove those commented-out lines.
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.
This should only be two commits:
cadical: init at 1.2.1
maintainers: add shnarazk
Please rearrange accordingly :)
@puzzlewolf thank you for checking! I've rebuilt the branch (after resetting...). |
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.
Apart from the last nitpick, LGTM :)
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
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.
Looks pretty good, just some nitpicks. The only important thing is fixing the rev
.
src = fetchFromGitHub { | ||
owner = "arminbiere"; | ||
repo = pname; | ||
rev = "92d72896c49b30ad2d50c8e1061ca0681cd23e60"; |
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.
This should point to a release tag instead of a commit hash. Otherwise automatic updates won't work and its easy to get a mismatch between version
and rev
.
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.
rev = "92d72896c49b30ad2d50c8e1061ca0681cd23e60"; | |
rev = "rel-${version}"; |
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 review and explanation :)
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 reviewing! I revised it.
|
||
src = fetchFromGitHub { | ||
owner = "arminbiere"; | ||
repo = pname; |
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.
repo = pname; | |
repo = "cadical"; |
repo
and pname
are the same, but they don't necessarily change together.
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.
Certainly. I did.
maintainers = with maintainers; [ shnarazk ]; | ||
platforms = platforms.unix; | ||
license = licenses.mit; | ||
homepage = http://fmv.jku.at/cadical; |
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.
homepage = http://fmv.jku.at/cadical; | |
homepage = "http://fmv.jku.at/cadical"; |
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 did at c5a12e3 .
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 @shnarazk, @puzzlewolf!
Thank you too @timokau and @puzzlewolf !! |
Motivation for this change
CaDiCaL is one of the best and art-of-the-state SAT solvers. It got a very good result in the SAT Race 2019, comparing with /pkgs/applications/science/logic/{minisat, cryptominisat, glucose}. So I think it's worth adding to nix packages.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)