Changed my dirty libiconv hacks I once made for i686-freebsd, into a more consistent manner by checking for a non-Linux platform in the build expressions. Hopefully, this increases portability for non-Linux platforms

svn path=/nixpkgs/trunk/; revision=24347
This commit is contained in:
Sander van der Burg
2010-10-18 11:30:44 +00:00
parent 4f27541261
commit 0cc4ca1fcd
4 changed files with 11 additions and 13 deletions
+3 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gettext, perl, libiconv ? null}:
{ stdenv, fetchurl, pkgconfig, gettext, perl, libiconv}:
stdenv.mkDerivation rec {
name = "glib-2.22.5";
@@ -8,7 +8,8 @@ stdenv.mkDerivation rec {
sha256 = "802be9c9ffeb631725ffd6ed35af0af309776729a7fab4fcb48f2b0b8fe7245b";
};
buildInputs = [pkgconfig gettext perl libiconv];
buildInputs = [pkgconfig gettext perl]
++ stdenv.lib.optional (!stdenv.isLinux) libiconv;
# The nbd package depends on a static version of this library; hence
# the default configure flag --disable-static is switched off.
+3 -2
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gettext, perl, libiconv ? null, zlib }:
{ stdenv, fetchurl, pkgconfig, gettext, perl, libiconv, zlib }:
stdenv.mkDerivation rec {
name = "glib-2.24.1";
@@ -8,7 +8,8 @@ stdenv.mkDerivation rec {
sha256 = "014c3da960bf17117371075c16495f05f36501db990851ceea658f15d2ea6d04";
};
buildInputs = [ pkgconfig gettext perl libiconv ];
buildInputs = [ pkgconfig gettext perl ]
++ stdenv.lib.optional (!stdenv.isLinux) libiconv;
propagatedBuildInputs = [ zlib ];