From 052c4a65389d8d5f0809f8d2d09a8fe905654198 Mon Sep 17 00:00:00 2001 From: Cryolitia PukNgae Date: Fri, 20 Mar 2026 17:35:30 +0800 Subject: [PATCH] whois: make it read /etc/whois.conf Add CONFIG_FILE=/etc/whois.conf to makeFlags so whois actually reads the system configuration file. Without this flag, /etc/whois.conf is ignored. Matches Debian and Arch Linux packaging. Link: https://github.com/rfc1036/whois/blob/next/debian/rules Link: https://gitlab.archlinux.org/archlinux/packaging/packages/whois/-/blob/main/PKGBUILD Signed-off-by: Cryolitia PukNgae --- pkgs/by-name/wh/whois/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/wh/whois/package.nix b/pkgs/by-name/wh/whois/package.nix index 4503732b8681..7407e81f5b92 100644 --- a/pkgs/by-name/wh/whois/package.nix +++ b/pkgs/by-name/wh/whois/package.nix @@ -50,7 +50,10 @@ stdenv.mkDerivation (finalAttrs: { done ''; - makeFlags = [ "HAVE_ICONV=1" ]; + makeFlags = [ + "HAVE_ICONV=1" + "CONFIG_FILE=/etc/whois.conf" + ]; buildFlags = [ "whois" ]; installTargets = [ "install-whois" ];