2021-01-15 10:19:50 +01:00
|
|
|
{lib, stdenv, lynx, fetchurl}:
|
2007-08-28 16:45:00 +02:00
|
|
|
|
2021-08-01 22:48:53 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jwhois";
|
|
|
|
version = "4.0";
|
2015-07-08 07:33:00 +02:00
|
|
|
|
2007-08-28 16:45:00 +02:00
|
|
|
src = fetchurl {
|
2021-08-01 22:48:53 +02:00
|
|
|
url = "mirror://gnu/jwhois/jwhois-${version}.tar.gz";
|
2007-08-28 16:45:00 +02:00
|
|
|
sha256 = "0knn7iaj5v0n6jpmldyv2yk4bcy9dn3kywmv63bwc5drh9kvi6zs";
|
|
|
|
};
|
|
|
|
|
2015-07-08 07:33:00 +02:00
|
|
|
postInstall = ''
|
|
|
|
ln -s jwhois $out/bin/whois
|
|
|
|
sed -i -e "s|/usr/bin/lynx|${lynx}/bin/lynx|g" $out/etc/jwhois.conf
|
|
|
|
'';
|
2007-08-28 16:45:00 +02:00
|
|
|
|
2017-04-20 07:32:02 +02:00
|
|
|
patches = [ ./connect.patch ./service-name.patch ];
|
2011-09-28 09:25:59 +02:00
|
|
|
|
2018-01-15 01:41:04 +01:00
|
|
|
makeFlags = [ "AR=${stdenv.cc.bintools.targetPrefix}ar" ];
|
|
|
|
|
2021-09-14 05:30:39 +02:00
|
|
|
# Work around error from <stdio.h> on aarch64-darwin:
|
|
|
|
# error: 'TARGET_OS_IPHONE' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
|
|
|
|
# TODO: this should probably be fixed at a lower level than this?
|
|
|
|
NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-Wno-undef-prefix";
|
|
|
|
|
2007-08-28 16:45:00 +02:00
|
|
|
meta = {
|
|
|
|
description = "A client for the WHOIS protocol allowing you to query the owner of a domain name";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.gnu.org/software/jwhois/";
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = lib.platforms.unix;
|
2007-08-28 16:45:00 +02:00
|
|
|
};
|
|
|
|
}
|