8 stdenv.mkDerivation (finalAttrs: {
13 url = "mirror://gnu/jwhois/jwhois-${finalAttrs.version}.tar.gz";
14 hash = "sha256-+pu4Z4K5FcbXMLtyP4dtybNFphfbN1qvNBbsIlU81k4=";
23 # avoids error on darwin where `-Werror=implicit-function-declaration` is set by default
24 sed 1i'void timeout_init();' -i src/jwhois.c
26 substituteInPlace example/jwhois.conf \
27 --replace-fail "/usr/bin/lynx" ${lib.getExe lynx}
30 makeFlags = [ "AR=${stdenv.cc.bintools.targetPrefix}ar" ];
33 ln -s $out/bin/jwhois $out/bin/whois
36 # Work around error from <stdio.h> on aarch64-darwin:
37 # error: 'TARGET_OS_IPHONE' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
38 # TODO: this should probably be fixed at a lower level than this?
39 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-undef-prefix";
42 description = "A client for the WHOIS protocol allowing you to query the owner of a domain name";
43 homepage = "https://www.gnu.org/software/jwhois/";
44 license = lib.licenses.gpl3Only;
45 platforms = lib.platforms.unix;