1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/tools/networking/jwhois/default.nix
Jörg Thalheim 080c799f38
jwhois: fix service name
after an update of iana-etc the service name of whois changed
2017-04-20 07:33:38 +02:00

25 lines
638 B
Nix

{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 ];
meta = {
description = "A client for the WHOIS protocol allowing you to query the owner of a domain name";
homepage = http://www.gnu.org/software/jwhois/;
license = "GPL";
platforms = stdenv.lib.platforms.linux;
};
}