Merge pull request #37062 from NixOS/whois

whois: fix darwin build
This commit is contained in:
Daiderd Jordan 2018-03-16 21:35:07 +01:00 committed by GitHub
commit b1747a123a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -18,8 +18,8 @@ stdenv.mkDerivation rec {
for i in Makefile po/Makefile; do
substituteInPlace $i --replace "prefix = /usr" "prefix = $out"
done
substituteInPlace Makefile --replace "DEFS += HAVE_ICONV" "DEFS += HAVE_ICONV\nwhois_LDADD += -liconv"
'' + stdenv.lib.optionalString (stdenv.isDarwin || stdenv.hostPlatform.isMusl) ''
echo "whois_LDADD += -liconv" >> Makefile
'';
makeFlags = [ "HAVE_ICONV=1" ];
@ -39,6 +39,6 @@ stdenv.mkDerivation rec {
homepage = https://packages.qa.debian.org/w/whois.html;
license = licenses.gpl2;
maintainers = with maintainers; [ fpletz ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}