13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
21 hash = "sha256-c/Mx2HXAj6mHH8rElG7+F94sSrVSL1N9HZBvaMWUjlw=";
26 url = "https://github.com/macports/macports-ports/raw/93de4e9fc1e5e8427bf98f48209e783a5e8fab57/net/whois/files/implicit.patch";
28 hash = "sha256-ogVylQz//tpXxPNIWIHkhghvToU1z1D1FfnUBdZLyRY=";
32 env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
33 # whois fails to link libiconv on Darwin.
34 NIX_LDFLAGS = "-liconv";
48 for i in Makefile po/Makefile; do
49 substituteInPlace $i --replace "prefix = /usr" "prefix = $out"
53 makeFlags = [ "HAVE_ICONV=1" ];
54 buildFlags = [ "whois" ];
56 installTargets = [ "install-whois" ];
59 description = "Intelligent WHOIS client from Debian";
61 This package provides a commandline client for the WHOIS (RFC 3912)
62 protocol, which queries online servers for information such as contact
63 details for domains and IP address assignments. It can intelligently
64 select the appropriate WHOIS server for most queries.
67 homepage = "https://packages.qa.debian.org/w/whois.html";
68 license = licenses.gpl2Plus;
69 maintainers = with maintainers; [ fpletz ];
70 platforms = platforms.unix;
71 mainProgram = "whois";