git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #33650 from dtzWill/feature/whois-idn-and-update

whois: use idn, libiconv; update

commit9e40faf0d5b54fa6c3f6b1343ae0ae2cf89376aa authorJörg Thalheim <Mic92@users.noreply.github.com> dateSat 13 Jan 2018, 18:55 (9 years ago) parent5ccfd0eeb7af7a
1 file changed+10−6
pkgs/tools/networking/whois/default.nix+10−6
pkgs/tools/networking/whois/default.nix+10−6
@@ -1,27 +1,31 @@
1−{ stdenv, fetchFromGitHub, perl, gettext }:
1+{ stdenv, fetchFromGitHub, perl, gettext, pkgconfig, libidn2, libiconv }:
22
33stdenv.mkDerivation rec {
4− version = "5.2.18";
4+ version = "5.2.20";
55 name = "whois-${version}";
66
77 src = fetchFromGitHub {
88 owner = "rfc1036";
99 repo = "whois";
1010 rev = "v${version}";
11− sha256 = "0jzyq1rj6balc6a28swzgspv55xhkc75dw6wsn159in4ap61bzmi";
11+ sha256 = "1aamasivfnghr9my1j6c1rf0dfal45axjcjf3mpv0g942bkxqp5b";
1212 };
1313
14− buildInputs = [ perl gettext ];
14+ nativeBuildInputs = [ perl gettext pkgconfig ];
15+ buildInputs = [ libidn2 libiconv ];
1516
1617 preConfigure = ''
1718 for i in Makefile po/Makefile; do
1819 substituteInPlace $i --replace "prefix = /usr" "prefix = $out"
1920 done
21+
22+ substituteInPlace Makefile --replace "DEFS += HAVE_ICONV" "DEFS += HAVE_ICONV\nwhois_LDADD += -liconv"
2023 '';
2124
22− buildPhase = "make whois";
25+ makeFlags = [ "HAVE_ICONV=1" ];
26+ buildFlags = [ "whois" ];
2327
24− installPhase = "make install-whois";
28+ installTargets = [ "install-whois" ];
2529
2630 meta = with stdenv.lib; {
2731 description = "Intelligent WHOIS client from Debian";