about summary refs log tree commit diff
path: root/pkgs/tools/networking/whois/default.nix
diff options
context:
space:
mode:
authorJude Taylor <me@jude.bio>2018-03-14 21:03:00 -0700
committerJude Taylor <me@jude.bio>2018-03-14 21:03:00 -0700
commita34479850ec5bf2277b78478914c390e27e18b35 (patch)
tree4b0efd7f1368cd72601fd4f1864648e02d0d4667 /pkgs/tools/networking/whois/default.nix
parent3ebc49c5c02b13636c7eff235cbcbe14632b816b (diff)
fix whois build
Diffstat (limited to 'pkgs/tools/networking/whois/default.nix')
-rw-r--r--pkgs/tools/networking/whois/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/tools/networking/whois/default.nix b/pkgs/tools/networking/whois/default.nix
index 6f37e88f4f6d6..2b77184f3c9ad 100644
--- a/pkgs/tools/networking/whois/default.nix
+++ b/pkgs/tools/networking/whois/default.nix
@@ -18,8 +18,8 @@ stdenv.mkDerivation rec {
     for i in Makefile po/Makefile; do
       substituteInPlace $i --replace "prefix = /usr" "prefix = $out"
     done
-
-    substituteInPlace Makefile --replace "DEFS += HAVE_ICONV" "DEFS += HAVE_ICONV\nwhois_LDADD += -liconv"
+  '' + stdenv.lib.optionalString stdenv.isDarwin ''
+    echo "whois_LDADD += -liconv" >> Makefile
   '';
 
   makeFlags = [ "HAVE_ICONV=1" ];
@@ -39,6 +39,6 @@ stdenv.mkDerivation rec {
     homepage = https://packages.qa.debian.org/w/whois.html;
     license = licenses.gpl2;
     maintainers = with maintainers; [ fpletz ];
-    platforms = platforms.linux;
+    platforms = platforms.unix;
   };
 }