2021-01-15 09:19:50 +00:00
|
|
|
{lib, stdenv, lynx, fetchurl}:
|
2007-08-28 15:45:00 +01:00
|
|
|
|
2021-08-01 21:48:53 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jwhois";
|
|
|
|
version = "4.0";
|
2015-07-08 06:33:00 +01:00
|
|
|
|
2007-08-28 15:45:00 +01:00
|
|
|
src = fetchurl {
|
2021-08-01 21:48:53 +01:00
|
|
|
url = "mirror://gnu/jwhois/jwhois-${version}.tar.gz";
|
2007-08-28 15:45:00 +01:00
|
|
|
sha256 = "0knn7iaj5v0n6jpmldyv2yk4bcy9dn3kywmv63bwc5drh9kvi6zs";
|
|
|
|
};
|
|
|
|
|
2015-07-08 06:33:00 +01: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 15:45:00 +01:00
|
|
|
|
2017-04-20 06:32:02 +01:00
|
|
|
patches = [ ./connect.patch ./service-name.patch ];
|
2011-09-28 08:25:59 +01:00
|
|
|
|
2018-01-15 00:41:04 +00:00
|
|
|
makeFlags = [ "AR=${stdenv.cc.bintools.targetPrefix}ar" ];
|
|
|
|
|
2007-08-28 15:45:00 +01:00
|
|
|
meta = {
|
|
|
|
description = "A client for the WHOIS protocol allowing you to query the owner of a domain name";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.gnu.org/software/jwhois/";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = lib.platforms.unix;
|
2007-08-28 15:45:00 +01:00
|
|
|
};
|
|
|
|
}
|