Skip to content

Commit

Permalink
hello: make sure libiconv is linked (#346939)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Oct 11, 2024
2 parents 72b50cc + 42a6b87 commit cc121a9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/by-name/he/hello/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-jZkUKv2SV28wsM18tCqNxoCZmLxdYH2Idh9RLibH2yA=";
};

# The GNU Hello `configure` script detects how to link libiconv but fails to actually make use of that.
# Unfortunately, this cannot be a patch to `Makefile.am` because `autoreconfHook` causes a gettext
# infrastructure mismatch error when trying to build `hello`.
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_LDFLAGS = "-liconv";
};

doCheck = true;

doInstallCheck = true;
Expand Down

0 comments on commit cc121a9

Please sign in to comment.