fix whois build

This commit is contained in:
Jude Taylor 2018-03-14 21:03:00 -07:00
parent 3ebc49c5c0
commit a34479850e

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 ''
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;
}; };
} }