summary refs log tree commit diff
path: root/pkgs/tools/networking
diff options
context:
space:
mode:
authorMatthew Justin Bauer <mjbauer95@gmail.com>2018-05-01 13:56:54 -0500
committerGitHub <noreply@github.com>2018-05-01 13:56:54 -0500
commit5e6f1abfd36e7eecb7e20f39f60f701e63dc8964 (patch)
tree4a951d46b33a6c4da6ef26842e07250c3dc2f67d /pkgs/tools/networking
parentb9f669e5bcd23ad5f1fda7cacc2e4fb0502c6d9c (diff)
parent57a4db244995c9852cf5a202bd7540a5c1e7c410 (diff)
downloadnixlib-5e6f1abfd36e7eecb7e20f39f60f701e63dc8964.tar
nixlib-5e6f1abfd36e7eecb7e20f39f60f701e63dc8964.tar.gz
nixlib-5e6f1abfd36e7eecb7e20f39f60f701e63dc8964.tar.bz2
nixlib-5e6f1abfd36e7eecb7e20f39f60f701e63dc8964.tar.lz
nixlib-5e6f1abfd36e7eecb7e20f39f60f701e63dc8964.tar.xz
nixlib-5e6f1abfd36e7eecb7e20f39f60f701e63dc8964.tar.zst
nixlib-5e6f1abfd36e7eecb7e20f39f60f701e63dc8964.zip
Merge pull request #39790 from matthewbauer/gnu-on-darwin
GNUs on Darwin
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r--pkgs/tools/networking/inetutils/default.nix23
-rw-r--r--pkgs/tools/networking/jwhois/default.nix4
2 files changed, 11 insertions, 16 deletions
diff --git a/pkgs/tools/networking/inetutils/default.nix b/pkgs/tools/networking/inetutils/default.nix
index 04045615a9b4..c050758a8ee3 100644
--- a/pkgs/tools/networking/inetutils/default.nix
+++ b/pkgs/tools/networking/inetutils/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, ncurses, perl, help2man }:
+{ stdenv, lib, fetchurl, ncurses, perl, help2man }:
 
 stdenv.mkDerivation rec {
   name = "inetutils-1.9.4";
@@ -16,25 +16,20 @@ stdenv.mkDerivation rec {
   buildInputs = [ ncurses /* for `talk' */ perl /* for `whois' */ help2man ];
 
   configureFlags = [ "--with-ncurses-include-dir=${ncurses.dev}/include" ]
-  ++ stdenv.lib.optionals stdenv.hostPlatform.isMusl [ # Musl doesn't define rcmd
+  ++ lib.optionals stdenv.hostPlatform.isMusl [ # Musl doesn't define rcmd
     "--disable-rcp"
     "--disable-rsh"
     "--disable-rlogin"
     "--disable-rexec"
-  ];
+  ] ++ lib.optional stdenv.isDarwin  "--disable-servers";
 
   # Test fails with "UNIX socket name too long", probably because our
   # $TMPDIR is too long.
-  #doCheck = true;
-
+  doCheck = false;
 
-  postInstall = ''
-    # XXX: These programs are normally installed setuid but since it
-    # fails, they end up being non-executable, hence this hack.
-    chmod +x $out/bin/{ping,ping6,${stdenv.lib.optionalString (!stdenv.hostPlatform.isMusl) ''rcp,rlogin,rsh,''}traceroute}
-  '';
+  installFlags = [ "SUIDMODE=" ];
 
-  meta = {
+  meta = with lib; {
     description = "Collection of common network programs";
 
     longDescription =
@@ -45,9 +40,9 @@ stdenv.mkDerivation rec {
       '';
 
     homepage = http://www.gnu.org/software/inetutils/;
-    license = stdenv.lib.licenses.gpl3Plus;
+    license = licenses.gpl3Plus;
 
-    maintainers = [ ];
-    platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux;
+    maintainers = with maintainers; [ matthewbauer ];
+    platforms = platforms.unix;
   };
 }
diff --git a/pkgs/tools/networking/jwhois/default.nix b/pkgs/tools/networking/jwhois/default.nix
index cd0821ef9ef5..be8e9e210d15 100644
--- a/pkgs/tools/networking/jwhois/default.nix
+++ b/pkgs/tools/networking/jwhois/default.nix
@@ -20,7 +20,7 @@ stdenv.mkDerivation {
   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;
+    license = stdenv.lib.licenses.gpl3;
+    platforms = stdenv.lib.platforms.unix;
   };
 }