From c904f35728bfcb1322c862af99890793c25984f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 10 Mar 2015 18:23:02 +0100 Subject: [PATCH] perlPackages.LocalGettext: fix on both Linux and Darwin --- pkgs/top-level/perl-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 3538339fa292..625aea9046e9 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -5104,8 +5104,8 @@ let self = _self // overrides; _self = with self; { LocaleGettext = buildPerlPackage { name = "LocaleGettext-1.05"; - buildInputs = [ pkgs.gettext ]; - NIX_CFLAGS_LINK = "-lintl"; + buildInputs = stdenv.lib.optional stdenv.isDarwin pkgs.gettext; + NIX_CFLAGS_LINK = if stdenv.isDarwin then "-lintl" else null; src = fetchurl { url = mirror://cpan/authors/id/P/PV/PVANDRY/gettext-1.05.tar.gz; sha256 = "15262a00vx714szpx8p2z52wxkz46xp7acl72znwjydyq4ypydi7";