1 {lib, stdenv, lynx, fetchurl}:
3 stdenv.mkDerivation rec {
8 url = "mirror://gnu/jwhois/jwhois-${version}.tar.gz";
9 sha256 = "0knn7iaj5v0n6jpmldyv2yk4bcy9dn3kywmv63bwc5drh9kvi6zs";
13 ln -s jwhois $out/bin/whois
14 sed -i -e "s|/usr/bin/lynx|${lynx}/bin/lynx|g" $out/etc/jwhois.conf
17 patches = [ ./connect.patch ./service-name.patch ];
19 makeFlags = [ "AR=${stdenv.cc.bintools.targetPrefix}ar" ];
21 # Work around error from <stdio.h> on aarch64-darwin:
22 # error: 'TARGET_OS_IPHONE' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
23 # TODO: this should probably be fixed at a lower level than this?
24 NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-Wno-undef-prefix";
27 description = "A client for the WHOIS protocol allowing you to query the owner of a domain name";
28 homepage = "https://www.gnu.org/software/jwhois/";
29 license = lib.licenses.gpl3;
30 platforms = lib.platforms.unix;