Closed suhr closed 3 years ago
Thank you for the report. I'll check if there is a way to make the setup more flexible so that this is a non-issue.
OTOH, https://github.com/NixOS/nixpkgs/issues/106567 seems to suggest that the nixpkg build process breaks the assumptions of the package it is building. I'd think that this is perhaps a more fundamental issue, and that one likely needs to be resolved as well.
@suhr could you try https://github.com/google/rust_icu/pull/190 to see if it helps?
PR #190 is now merged: it doesn't break any builds, so it doesn't make matters worse. If @suhr confirms that this helps, perhaps we can close this bug. Sadly I don't have a nix setup so can't easily confirm that the nix issue is also fixed.
Yeah, now I can build it.
The compilation of
rust_icu
on NixOS fails with the following message:The reason why it does so is because Nix splits the ICU package into two outputs:
out
anddev
, each of which has different pathWhile it's reasonable to rely on
icu-config --prefix
to provide the path for everything, it would be nice to have a way to use a split ICU package. Note that thoughicu-config --prefix
provides an incorrect path for includes,icu-config --cppflags
andpkg-config icu-uc --cflags
provide correct compiler flags:-I/nix/store/7flw8mxs28mk2r1wsnyas1y59j4hjr7a-icu4c-67.1-dev/include
.A related Nixpkgs issue: https://github.com/NixOS/nixpkgs/issues/106567