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:
@@ -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.
|
||||
|
||||
@@ -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 ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user