nixpkgs/pkgs/tools/networking/jwhois/default.nix

27 lines
714 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{lib, stdenv, lynx, fetchurl}:
stdenv.mkDerivation {
name = "jwhois-4.0";
src = fetchurl {
url = "mirror://gnu/jwhois/jwhois-4.0.tar.gz";
sha256 = "0knn7iaj5v0n6jpmldyv2yk4bcy9dn3kywmv63bwc5drh9kvi6zs";
};
postInstall = ''
ln -s jwhois $out/bin/whois
sed -i -e "s|/usr/bin/lynx|${lynx}/bin/lynx|g" $out/etc/jwhois.conf
'';
patches = [ ./connect.patch ./service-name.patch ];
2018-01-15 00:41:04 +00:00
makeFlags = [ "AR=${stdenv.cc.bintools.targetPrefix}ar" ];
meta = {
description = "A client for the WHOIS protocol allowing you to query the owner of a domain name";
homepage = "https://www.gnu.org/software/jwhois/";
2021-01-15 09:19:50 +00:00
license = lib.licenses.gpl3;
platforms = lib.platforms.unix;
};
}