Skip to content
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

Merged
merged 4 commits into from Sep 8, 2017
Merged

Conversation

commandodev
Copy link
Contributor

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])"

  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@@ -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";
Copy link
Member

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).

@@ -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
Copy link
Member

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.

@peti peti merged commit 9e56f1a into NixOS:master Sep 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants