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