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