Skip to content

Commit

Permalink
libunistring: Do propagate libiconv on non-Linux
Browse files Browse the repository at this point in the history
Fixes #19492.
  • Loading branch information
edolstra committed Oct 12, 2016
1 parent 985dec6 commit ed60067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/libraries/libunistring/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ stdenv.mkDerivation rec {

patches = stdenv.lib.optional stdenv.isDarwin [ ./clang.patch ];

buildInputs = [ libiconv ];
propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;

configureFlags = [
"--with-libiconv-prefix=${libiconv}"
Expand Down

1 comment on commit ed60067

@copumpkin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For posterity and anyone looking this up, this works because libiconv = glibc which is automatically a buildInput on the linux stdenv.

Please sign in to comment.