summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-01-13 18:55:17 +0000
committerGitHub <noreply@github.com>2018-01-13 18:55:17 +0000
commit9e40faf0d5b54fa6c3f6b1343ae0ae2cf89376aa (patch)
tree85ad91b0eb0e5c12e24958582566d605a70d567d /pkgs/tools
parent5ccfd0ee34ae525b7e10a6973150a7bcf92cbb37 (diff)
parenteb7af7a82b9823d38a2dfdfa9bcd0093c18abaeb (diff)
downloadnixpkgs-9e40faf0d5b54fa6c3f6b1343ae0ae2cf89376aa.tar
nixpkgs-9e40faf0d5b54fa6c3f6b1343ae0ae2cf89376aa.tar.gz
nixpkgs-9e40faf0d5b54fa6c3f6b1343ae0ae2cf89376aa.tar.bz2
nixpkgs-9e40faf0d5b54fa6c3f6b1343ae0ae2cf89376aa.tar.lz
nixpkgs-9e40faf0d5b54fa6c3f6b1343ae0ae2cf89376aa.tar.xz
nixpkgs-9e40faf0d5b54fa6c3f6b1343ae0ae2cf89376aa.tar.zst
nixpkgs-9e40faf0d5b54fa6c3f6b1343ae0ae2cf89376aa.zip
Merge pull request #33650 from dtzWill/feature/whois-idn-and-update
whois: use idn, libiconv; update
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/whois/default.nix16
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/tools/networking/whois/default.nix b/pkgs/tools/networking/whois/default.nix
index ed8f2eebc75..30ecf617873 100644
--- a/pkgs/tools/networking/whois/default.nix
+++ b/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";