Skip to content

Commit

Permalink
kill libiconvOr*
Browse files Browse the repository at this point in the history
Conflicts:
	pkgs/applications/networking/mailreaders/sup/default.nix
	pkgs/development/compilers/ghc/7.8.3-binary.nix
	pkgs/development/interpreters/php/5.3.nix
	pkgs/development/interpreters/ruby/patches.nix
	pkgs/development/libraries/cairo/default.nix
	pkgs/development/libraries/poppler/default.nix
	pkgs/top-level/all-packages.nix
  • Loading branch information
gridaphobe committed Feb 8, 2015
1 parent 362d759 commit e08b9ab
Show file tree
Hide file tree
Showing 37 changed files with 88 additions and 114 deletions.
5 changes: 2 additions & 3 deletions pkgs/applications/audio/ncmpcpp/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, ncurses, curl, taglib, fftw, mpd_clientlib, pkgconfig
, libiconvOrEmpty, boost, readline }:
, libiconv, boost, readline }:

stdenv.mkDerivation rec {
version = "0.6.2";
Expand All @@ -12,8 +12,7 @@ stdenv.mkDerivation rec {

configureFlags = "BOOST_LIB_SUFFIX=";

buildInputs = [ ncurses curl taglib fftw mpd_clientlib boost pkgconfig readline ]
++ libiconvOrEmpty;
buildInputs = [ ncurses curl taglib fftw mpd_clientlib boost pkgconfig readline libiconv];

meta = with stdenv.lib; {
description = "Curses-based interface for MPD (music player daemon)";
Expand Down
5 changes: 2 additions & 3 deletions pkgs/applications/misc/gammu/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, python, pkgconfig, cmake, bluez, libusb1, curl
, libiconvOrEmpty, gettext, sqlite }:
, libiconv, gettext, sqlite }:

with stdenv.lib;

Expand All @@ -14,8 +14,7 @@ stdenv.mkDerivation rec {

patches = [ ./bashcomp-dir.patch ];

buildInputs = [ python pkgconfig cmake bluez libusb1 curl gettext sqlite ]
++ libiconvOrEmpty;
buildInputs = [ python pkgconfig cmake bluez libusb1 curl gettext sqlite libiconv ];

enableParallelBuilding = true;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, sqlite, curl, pkgconfig, libxml2, stfl, json-c-0-11, ncurses
, gettext, libiconvOrEmpty, makeWrapper, perl }:
, gettext, libiconv, makeWrapper, perl }:

stdenv.mkDerivation rec {
name = "newsbeuter-2.8";
Expand All @@ -13,8 +13,7 @@ stdenv.mkDerivation rec {
buildInputs
# use gettext instead of libintlOrEmpty so we have access to the msgfmt
# command
= [ pkgconfig sqlite curl libxml2 stfl json-c-0-11 ncurses gettext perl ]
++ libiconvOrEmpty
= [ pkgconfig sqlite curl libxml2 stfl json-c-0-11 ncurses gettext perl libiconv ]
++ stdenv.lib.optional stdenv.isDarwin makeWrapper;

preBuild = ''
Expand Down
5 changes: 2 additions & 3 deletions pkgs/applications/networking/feedreaders/newsbeuter/dev.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchgit, sqlite, curl, pkgconfig, libxml2, stfl, json-c-0-11, ncurses
, gettext, libiconvOrEmpty, makeWrapper, perl }:
, gettext, libiconv, makeWrapper, perl }:

stdenv.mkDerivation rec {
name = "newsbeuter-dev-20140309";
Expand All @@ -13,8 +13,7 @@ stdenv.mkDerivation rec {
buildInputs
# use gettext instead of libintlOrEmpty so we have access to the msgfmt
# command
= [ pkgconfig sqlite curl libxml2 stfl json-c-0-11 ncurses gettext perl ]
++ libiconvOrEmpty
= [ pkgconfig sqlite curl libxml2 stfl json-c-0-11 ncurses gettext perl libiconv ]
++ stdenv.lib.optional stdenv.isDarwin makeWrapper;

preBuild = ''
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/networking/p2p/twister/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, python
, boost, db, openssl, geoip, libiconvOrEmpty, miniupnpc
, boost, db, openssl, geoip, libiconv, miniupnpc
, srcOnly, fetchgit
}:

Expand Down Expand Up @@ -33,8 +33,8 @@ in stdenv.mkDerivation rec {

buildInputs = [
autoconf automake libtool pkgconfig python
boost db openssl geoip miniupnpc
] ++ libiconvOrEmpty;
boost db openssl geoip miniupnpc libiconv
];

postPatch = ''
sed -i -e '/-htmldir/s|(default: [^)]*)|(default: ${twisterHTML})|' \
Expand Down
5 changes: 2 additions & 3 deletions pkgs/applications/science/astronomy/stellarium/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, cmake, freetype, libpng, mesa, gettext, openssl, qt5, perl
, libiconvOrEmpty }:
, libiconv }:

stdenv.mkDerivation rec {
name = "stellarium-0.13.2";
Expand All @@ -9,8 +9,7 @@ stdenv.mkDerivation rec {
sha256 = "1asrq1v6vjzxd2zz92brdfs5f5b1qf8zwd7k2dpg3dl4shl8wwg5";
};

buildInputs = [ cmake freetype libpng mesa gettext openssl qt5 perl ]
++ libiconvOrEmpty;
buildInputs = [ cmake freetype libpng mesa gettext openssl qt5 perl libiconv ];

enableParallelBuilding = true;

Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/search/recoll/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ stdenv, fetchurl
, qt4, xapian, file, python
, djvulibre, groff, libxslt, unzip, xpdf, antiword, catdoc, lyx
, ghostscript, gawk, gnugrep, gnused, gnutar, gzip, libiconvOrLibc }:
, ghostscript, gawk, gnugrep, gnused, gnutar, gzip, libiconv }:

assert stdenv.system != "powerpc-linux";

Expand Down Expand Up @@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
substituteInPlace $f --replace grep ${gnugrep}/bin/grep
substituteInPlace $f --replace groff ${groff}/bin/groff
substituteInPlace $f --replace gunzip ${gzip}/bin/gunzip
substituteInPlace $f --replace iconv ${libiconvOrLibc}/bin/iconv
substituteInPlace $f --replace iconv ${libiconv}/bin/iconv
substituteInPlace $f --replace lyx ${lyx}/bin/lyx
substituteInPlace $f --replace pdftotext ${xpdf}/bin/pdftotext
substituteInPlace $f --replace pstotext ${ghostscript}/bin/ps2ascii
Expand Down
7 changes: 3 additions & 4 deletions pkgs/applications/version-management/redmine/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, ruby, bundler, libiconv, libiconvOrNull, libiconvOrLibc, libxslt, libxml2, pkgconfig, libffi, glibc, imagemagickBig, postgresql }:
{ stdenv, fetchurl, ruby, bundler, libiconv, libxslt, libxml2, pkgconfig, libffi, glibc, imagemagickBig, postgresql }:

let
gemspec = map (gem: fetchurl { url=gem.url; sha256=gem.hash; }) (import ./Gemfile.nix);
Expand All @@ -25,8 +25,7 @@ in stdenv.mkDerivation rec {
'';

buildInputs = [
ruby bundler
] ++ (if (libiconvOrNull != null) then [libiconv] else []) ++ [
ruby bundler libiconv
libxslt libxml2 pkgconfig libffi
imagemagickBig postgresql
];
Expand All @@ -48,7 +47,7 @@ in stdenv.mkDerivation rec {
bundle config build.nokogiri \
--use-system-libraries \
--with-iconv-dir=${libiconvOrLibc} \
--with-iconv-dir=${libiconv} \
--with-xslt-dir=${libxslt} \
--with-xml2-dir=${libxml2} \
--with-pkg-config \
Expand Down
5 changes: 2 additions & 3 deletions pkgs/applications/video/aegisub/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, fetchurl
, libX11, wxGTK
, libiconvOrEmpty, fontconfig, freetype
, libiconv, fontconfig, freetype
, mesa
, libass, fftw, ffms
, ffmpeg, pkgconfig, zlib # Undocumented (?) dependencies
Expand Down Expand Up @@ -30,9 +30,8 @@ stdenv.mkDerivation rec {

buildInputs = with stdenv.lib;
[ pkgconfig intltool libX11 wxGTK fontconfig freetype mesa
libass fftw ffms ffmpeg zlib icu boost boost.lib
libass fftw ffms ffmpeg zlib icu boost boost.lib libiconv
]
++ libiconvOrEmpty
++ optional spellChecking hunspell
++ optional automationSupport lua
++ optional openalSupport openal
Expand Down
5 changes: 2 additions & 3 deletions pkgs/development/compilers/vala/0.26.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, flex, bison, libxslt
, glib, libiconvOrEmpty, libintlOrEmpty
, glib, libiconv, libintlOrEmpty
}:

let
Expand All @@ -25,7 +25,6 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkgconfig flex bison libxslt ];

buildInputs = [ glib ]
++ libiconvOrEmpty
buildInputs = [ glib libiconv ]
++ libintlOrEmpty;
}
5 changes: 2 additions & 3 deletions pkgs/development/compilers/vala/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, flex, bison, libxslt
, glib, libiconvOrEmpty, libintlOrEmpty
, glib, libiconv, libintlOrEmpty
}:

let
Expand All @@ -25,7 +25,6 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkgconfig flex bison libxslt ];

buildInputs = [ glib ]
++ libiconvOrEmpty
buildInputs = [ glib libiconv ]
++ libintlOrEmpty;
}
4 changes: 2 additions & 2 deletions pkgs/development/interpreters/ruby/patches.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ fetchurl, writeScript, ruby, ncurses, sqlite, libxml2, libxslt, libffi
, zlib, libuuid, gems, jdk, python, stdenv, libiconvOrEmpty, imagemagick
, zlib, libuuid, gems, jdk, python, stdenv, libiconv, imagemagick
, pkgconfig }:

let
Expand Down Expand Up @@ -33,7 +33,7 @@ in
NIX_POST_EXTRACT_FILES_HOOK = patchUsrBinEnv;
};

iconv = { buildInputs = [ libiconvOrEmpty ]; };
iconv = { buildInputs = [ libiconv ]; };

libv8 = {
# This fix is needed to fool scons, which clears the environment by default.
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/apr-util/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, sslSupport ? true, openssl
, bdbSupport ? false, db
, ldapSupport ? true, openldap
, libiconvOrNull
, libiconv
}:

assert sslSupport -> openssl != null;
Expand All @@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
${stdenv.lib.optionalString ldapSupport "--with-ldap"}
'';

propagatedBuildInputs = [ makeWrapper apr expat libiconvOrNull ]
propagatedBuildInputs = [ makeWrapper apr expat libiconv ]
++ optional sslSupport openssl
++ optional bdbSupport db
++ optional ldapSupport openldap;
Expand Down
7 changes: 3 additions & 4 deletions pkgs/development/libraries/avahi/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ fetchurl, stdenv, pkgconfig, libdaemon, dbus, perl, perlXMLParser
, expat, gettext, intltool, glib, libiconvOrEmpty
, expat, gettext, intltool, glib, libiconv
, qt4 ? null
, qt4Support ? false
, withLibdnssdCompat ? false }:
Expand All @@ -16,9 +16,8 @@ stdenv.mkDerivation rec {

patches = [ ./no-mkdir-localstatedir.patch ];

buildInputs = [ libdaemon dbus perl perlXMLParser glib expat ]
++ (stdenv.lib.optional qt4Support qt4)
++ libiconvOrEmpty;
buildInputs = [ libdaemon dbus perl perlXMLParser glib expat libiconv ]
++ (stdenv.lib.optional qt4Support qt4);

nativeBuildInputs = [ pkgconfig gettext intltool ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/cairo/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, pkgconfig, libiconvOrEmpty, libintlOrEmpty
{ stdenv, fetchurl, fetchpatch, pkgconfig, libiconv, libintlOrEmpty
, expat, zlib, libpng, pixman, fontconfig, freetype, xlibs
, gobjectSupport ? true, glib
, xcbSupport ? true # no longer experimental since 1.12
Expand All @@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
sha256 = "0mk2fd9fwxqzravlmnbbrzwak15wqspn7609y0yn6qh87va5i0x4";
})];

nativeBuildInputs = [ pkgconfig ] ++ libintlOrEmpty ++ libiconvOrEmpty;
nativeBuildInputs = [ pkgconfig libiconv ] ++ libintlOrEmpty;

propagatedBuildInputs =
with xlibs; [ xlibs.xlibs fontconfig expat freetype pixman zlib libpng ]
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/dbus-glib/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, expat, gettext, libiconvOrEmpty, dbus, glib }:
{ stdenv, fetchurl, pkgconfig, expat, gettext, libiconv, dbus, glib }:

stdenv.mkDerivation rec {
name = "dbus-glib-0.102";
Expand All @@ -10,7 +10,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkgconfig gettext ];

buildInputs = [ expat ] ++ libiconvOrEmpty;
buildInputs = [ expat libiconv ];

propagatedBuildInputs = [ dbus.libs glib ];

Expand Down
5 changes: 2 additions & 3 deletions pkgs/development/libraries/glib/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, gettext, perl, python
, libiconvOrEmpty, libintlOrEmpty, zlib, libffi, pcre, libelf
, libiconv, libintlOrEmpty, zlib, libffi, pcre, libelf

# this is just for tests (not in closure of any regular package)
, coreutils, dbus_daemon, libxml2, tzdata, desktop_file_utils, shared_mime_info, doCheck ? false
Expand Down Expand Up @@ -60,8 +60,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkgconfig gettext perl python ];

propagatedBuildInputs = [ pcre zlib libffi ]
++ optional (!stdenv.isDarwin) libiconvOrEmpty
propagatedBuildInputs = [ pcre zlib libffi libiconv ]
++ libintlOrEmpty;

configureFlags =
Expand Down
5 changes: 2 additions & 3 deletions pkgs/development/libraries/libgsf/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ fetchurl, stdenv, pkgconfig, intltool, gettext, glib, libxml2, zlib, bzip2
, python, gdk_pixbuf, libiconvOrEmpty, libintlOrEmpty }:
, python, gdk_pixbuf, libiconv, libintlOrEmpty }:

with { inherit (stdenv.lib) optionals; };

Expand All @@ -15,8 +15,7 @@ stdenv.mkDerivation rec {

buildInputs = [ gettext bzip2 zlib python ];

propagatedBuildInputs = [ libxml2 glib gdk_pixbuf ]
++ libiconvOrEmpty
propagatedBuildInputs = [ libxml2 glib gdk_pixbuf libiconv ]
++ libintlOrEmpty;

doCheck = true;
Expand Down
7 changes: 4 additions & 3 deletions pkgs/development/libraries/libtorrent-rasterbar/generic.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, boost, openssl, pkgconfig, zlib, python, libiconvOrNull, geoip
{ stdenv, fetchurl, boost, openssl, pkgconfig, zlib, python, libiconv, geoip
# Version specific options
, version, sha256
, ... }:
Expand All @@ -11,15 +11,16 @@ stdenv.mkDerivation rec {
inherit sha256;
};

buildInputs = [ boost pkgconfig openssl zlib python libiconvOrNull geoip ];
buildInputs = [ boost pkgconfig openssl zlib python libiconv geoip ];

configureFlags = [
"--enable-python-binding"
"--with-libgeoip=system"
"--with-libiconv=yes"
"--with-boost=${boost.dev}"
"--with-boost-libdir=${boost.lib}/lib"
] ++ stdenv.lib.optional (libiconvOrNull != null) "--with-libiconv=yes";
"--with-libiconv=yes"
];

meta = with stdenv.lib; {
homepage = http://www.rasterbar.com/products/libtorrent/;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/p11-kit/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libiconvOrEmpty, pkgconfig, libffi, libtasn1 }:
{ stdenv, fetchurl, libiconv, pkgconfig, libffi, libtasn1 }:

stdenv.mkDerivation rec {
name = "p11-kit-0.20.2";
Expand All @@ -12,7 +12,7 @@ stdenv.mkDerivation rec {

configureFlags = "--without-libtasn1";

buildInputs = [ pkgconfig libffi libtasn1 ] ++ libiconvOrEmpty;
buildInputs = [ pkgconfig libffi libtasn1 libiconv ];

meta = {
homepage = http://p11-glue.freedesktop.org/;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/poppler/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchpatch, pkgconfig, cmake, libiconvOrEmpty, libintlOrEmpty
{ stdenv, fetchurl, fetchpatch, pkgconfig, cmake, libiconv, libintlOrEmpty
, zlib, curl, cairo, freetype, fontconfig, lcms, libjpeg, openjpeg
, qt4Support ? false, qt4 ? null, qt5
}:
Expand Down Expand Up @@ -26,7 +26,7 @@ let

propagatedBuildInputs = [ zlib cairo freetype fontconfig libjpeg lcms curl openjpeg ];

nativeBuildInputs = [ pkgconfig cmake ] ++ libiconvOrEmpty ++ libintlOrEmpty;
nativeBuildInputs = [ pkgconfig cmake libiconv ] ++ libintlOrEmpty;

cmakeFlags = "-DENABLE_XPDF_HEADERS=ON -DENABLE_LIBCURL=ON -DENABLE_ZLIB=ON";

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/stfl/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, ncurses, libiconvOrEmpty }:
{ stdenv, fetchurl, ncurses, libiconv }:

stdenv.mkDerivation rec {
name = "stfl-0.22";
Expand All @@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "062lqlf3qhp8bcapbpc0k3wym7x6ngncql8jmx5x06p6679szp9d";
};

buildInputs = [ ncurses ] ++ libiconvOrEmpty;
buildInputs = [ ncurses libiconv ];

buildPhase = ''
sed -i s%ncursesw/ncurses.h%ncurses.h% stfl_internals.h
Expand Down
Loading

0 comments on commit e08b9ab

Please sign in to comment.