summary refs log tree commit diff
path: root/pkgs/tools/networking
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-03-16 21:35:07 +0100
committerGitHub <noreply@github.com>2018-03-16 21:35:07 +0100
commitb1747a123aa66702b06dab42f5c8e03329e92666 (patch)
tree8d3a232320f8d84ba8059f75fcf88fe262610a94 /pkgs/tools/networking
parent1317428ca026ec1d438e68cb0308b38028777492 (diff)
parentea1377419c9e3fa4a1fc853d5a1a01a6a1149539 (diff)
downloadnixlib-b1747a123aa66702b06dab42f5c8e03329e92666.tar
nixlib-b1747a123aa66702b06dab42f5c8e03329e92666.tar.gz
nixlib-b1747a123aa66702b06dab42f5c8e03329e92666.tar.bz2
nixlib-b1747a123aa66702b06dab42f5c8e03329e92666.tar.lz
nixlib-b1747a123aa66702b06dab42f5c8e03329e92666.tar.xz
nixlib-b1747a123aa66702b06dab42f5c8e03329e92666.tar.zst
nixlib-b1747a123aa66702b06dab42f5c8e03329e92666.zip
Merge pull request #37062 from NixOS/whois
whois: fix darwin build
Diffstat (limited to 'pkgs/tools/networking')
-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 6f37e88f4f6d..48a3d1591fc9 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 || stdenv.hostPlatform.isMusl) ''
+    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;
   };
 }