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