diff --git a/pkgs/development/libraries/libnatspec/default.nix b/pkgs/development/libraries/libnatspec/default.nix index 985745c38986..7dafe3434f9f 100644 --- a/pkgs/development/libraries/libnatspec/default.nix +++ b/pkgs/development/libraries/libnatspec/default.nix @@ -17,7 +17,6 @@ stdenv.mkDerivation (rec { maintainers = [ stdenv.lib.maintainers.urkud ]; }; } // stdenv.lib.optionalAttrs (!stdenv.isLinux) { - NIX_CFLAGS_COMPILE = "-I${libiconv}/include"; - - NIX_CFLAGS_LINK = "-L${libiconv}/lib -liconv"; + NIX_LDFLAGS = "-liconv"; + propagatedBuildInputs = [ libiconv ]; })