-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
ocamlPackages.cohttp-async: init at 2.5.1 #88886
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
Conversation
You might want to rebase this change against |
Thanks for the heads up, this PR is much cleaner now :) |
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.
Builds fine for me. A bit of tidying up would be nice though:
- efa7f1dabf4fb591a3943450a4b15369fd6819b9 has a bit of a messy diff seems like some unnecessary indentation changes got commited. Also use the nixpkgs commit message format
- split 8baf77bf2fd1a0a9c3e8b4a21fb5ab6a6ee74c7e into three commits adding the individual packages.
Thanks for the feedback! (I'm still new to nix so a lot of my edits have been guess-work and pattern matching.) I've split the commit into one for each package. Do you think it would be good to also squash e76ba09 into d56e12e, or is it fine to keep them separate? |
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.
Commits should be fine like current, but you can also squash the two if you want.
useDune2 = true; | ||
inherit (cohttp) version src meta; | ||
|
||
buildInputs = [ uri ppx_sexp_conv ]; |
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.
Wouldn't be uri
in propagatedBuildInputs
?
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 modeled this off of cohttp/lwt.nix
. I'm not especially clear on the difference, so I didn't make any changes.
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.
otherwise lgtm
Awesome. Thanks for the careful review and the helpful feedback! |
Can you test this against cb2d328? |
I just rebased against master, and everything seems to be in working order ( |
@GrahamcOfBorg build ocaml-ng.ocamlPackages_4_07.cohttp-async |
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.
It seems that cohttp-async
won’t build with OCaml 4.07. Can you please set its minimumOCamlVersion
to 4.08? Thanks.
I think this is an issue of a change that happened in Jane Street's async packages (Tcp module was moved from |
There is such a check in bap: nixpkgs/pkgs/development/ocaml-modules/bap/default.nix Lines 9 to 11 in 1c243af
|
Thanks, @vbgl. I added such a check to cohttp-async. |
Motivation for this change
Add cohttp-async, upgrading cohttp and conduit to make this possible.
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)