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
Fix hw-kafka-client haskell package #29109
Conversation
@@ -105,6 +105,11 @@ self: super: builtins.intersectAttrs super { | |||
configureFlags = "--extra-include-dirs=${pkgs.rdkafka}/include/librdkafka"; | |||
}); | |||
|
|||
hw-kafka-client = overrideCabal super.hw-kafka-client (drv: { | |||
preConfigure = "sed -i -e /extra-lib-dirs/d -e /include-dirs/d -e /librdkafka/d hw-kafka-client.cabal"; |
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 a comment at the top explaining why those lines need to be deleted. Also, it would be nice to report that issue upstream (and possibly add a comment referring to that Github ticket, too).
(unit tests all pass)
@@ -105,6 +105,12 @@ self: super: builtins.intersectAttrs super { | |||
configureFlags = "--extra-include-dirs=${pkgs.rdkafka}/include/librdkafka"; | |||
}); | |||
|
|||
# library has hard coded directories that need to be removed https://github.com/NixOS/nixpkgs/pull/29109 |
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.
Mentioning the URL of this pull request here is not necessary because the git history will contain that information when the PR is merged. What would be nice, though, is to report that issue upstream and to add an URL to that upsteam bug report in that comment instead.
Motivation for this change
Needed to add rdkafka dependency
Things done
Add preConfigure step and configureFags
Built using
nix-shell -p "haskellPackages.ghcWithPackages (pkgs: [pkgs.hw-kafka-client])"
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)