Permalink
Browse files

Merge pull request #33650 from dtzWill/feature/whois-idn-and-update

whois: use idn, libiconv; update
  • Loading branch information...
Mic92 committed Jan 13, 2018
2 parents 5ccfd0e + eb7af7a commit 9e40faf0d5b54fa6c3f6b1343ae0ae2cf89376aa
Showing with 10 additions and 6 deletions.
  1. +10 −6 pkgs/tools/networking/whois/default.nix
@@ -1,27 +1,31 @@
{ stdenv, fetchFromGitHub, perl, gettext }:
{ stdenv, fetchFromGitHub, perl, gettext, pkgconfig, libidn2, libiconv }:
stdenv.mkDerivation rec {
version = "5.2.18";
version = "5.2.20";
name = "whois-${version}";
src = fetchFromGitHub {
owner = "rfc1036";
repo = "whois";
rev = "v${version}";
sha256 = "0jzyq1rj6balc6a28swzgspv55xhkc75dw6wsn159in4ap61bzmi";
sha256 = "1aamasivfnghr9my1j6c1rf0dfal45axjcjf3mpv0g942bkxqp5b";
};
buildInputs = [ perl gettext ];
nativeBuildInputs = [ perl gettext pkgconfig ];
buildInputs = [ libidn2 libiconv ];
preConfigure = ''
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"
'';
buildPhase = "make whois";
makeFlags = [ "HAVE_ICONV=1" ];
buildFlags = [ "whois" ];
installPhase = "make install-whois";
installTargets = [ "install-whois" ];
meta = with stdenv.lib; {
description = "Intelligent WHOIS client from Debian";

0 comments on commit 9e40faf

Please sign in to comment.