Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nixos/tests/hibernate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import ./make-test.nix (pkgs: {

networking.firewall.allowedTCPPorts = [ 4444 ];

systemd.services.listener.serviceConfig.ExecStart = "${pkgs.netcat}/bin/nc -l -p 4444";
systemd.services.listener.serviceConfig.ExecStart = "${pkgs.netcat}/bin/nc -l 4444";
};

probe = { config, lib, pkgs, ...}: {
Expand All @@ -36,7 +36,7 @@ import ./make-test.nix (pkgs: {
$machine->waitForShutdown;
$machine->start;
$probe->waitForUnit("network.target");
$probe->waitUntilSucceeds("echo test | nc -c machine 4444");
$probe->waitUntilSucceeds("echo test | nc machine 4444");
'';

})
12 changes: 6 additions & 6 deletions nixos/tests/virtualbox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ let
-pf /run/dhclient.pid \
-v eth0 eth1

otherIP="$(${pkgs.netcat}/bin/netcat -clp 1234 || :)"
otherIP="$(${pkgs.netcat}/bin/nc -l 1234 || :)"
${pkgs.iputils}/bin/ping -I eth1 -c1 "$otherIP"
echo "$otherIP reachable" | ${pkgs.netcat}/bin/netcat -clp 5678 || :
echo "$otherIP reachable" | ${pkgs.netcat}/bin/nc -l 5678 || :
'';

sysdDetectVirt = pkgs: ''
Expand Down Expand Up @@ -461,11 +461,11 @@ in mapAttrs mkVBoxTest {
my $test1IP = waitForIP_test1 1;
my $test2IP = waitForIP_test2 1;

$machine->succeed("echo '$test2IP' | netcat -c '$test1IP' 1234");
$machine->succeed("echo '$test1IP' | netcat -c '$test2IP' 1234");
$machine->succeed("echo '$test2IP' | nc '$test1IP' 1234");
$machine->succeed("echo '$test1IP' | nc '$test2IP' 1234");

$machine->waitUntilSucceeds("netcat -c '$test1IP' 5678 >&2");
$machine->waitUntilSucceeds("netcat -c '$test2IP' 5678 >&2");
$machine->waitUntilSucceeds("nc '$test1IP' 5678 >&2");
$machine->waitUntilSucceeds("nc '$test2IP' 5678 >&2");

shutdownVM_test1;
shutdownVM_test2;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/playonlinux/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
, gnupg1compat
, icoutils
, imagemagick
, netcat
, netcat-gnu
, p7zip
, python2Packages
, unzip
Expand All @@ -34,7 +34,7 @@ let
gnupg1compat
icoutils
imagemagick
netcat
netcat-gnu
p7zip
unzip
wget
Expand Down
4 changes: 2 additions & 2 deletions pkgs/build-support/vm/windows/bootstrap.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, vmTools, writeScript, writeText, runCommand, makeInitrd
, python, perl, coreutils, dosfstools, gzip, mtools, netcat, openssh, qemu
, python, perl, coreutils, dosfstools, gzip, mtools, netcat-gnu, openssh, qemu
, samba, socat, vde2, cdrkit, pathsFromGraph, gnugrep
}:

Expand All @@ -10,7 +10,7 @@ with stdenv.lib;
let
controller = import ./controller {
inherit stdenv writeScript vmTools makeInitrd;
inherit samba vde2 openssh socat netcat coreutils gzip gnugrep;
inherit samba vde2 openssh socat netcat-gnu coreutils gzip gnugrep;
};

mkCygwinImage = import ./cygwin-iso {
Expand Down
6 changes: 3 additions & 3 deletions pkgs/build-support/vm/windows/controller/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, writeScript, vmTools, makeInitrd
, samba, vde2, openssh, socat, netcat, coreutils, gnugrep, gzip
, samba, vde2, openssh, socat, netcat-gnu, coreutils, gnugrep, gzip
}:

{ sshKey
Expand Down Expand Up @@ -79,7 +79,7 @@ let
${coreutils}/bin/chmod 600 /ssh.key
'' + (if installMode then ''
echo -n "Waiting for Windows installation to finish..."
while ! ${netcat}/bin/netcat -z 192.168.0.1 22; do
while ! ${netcat-gnu}/bin/netcat -z 192.168.0.1 22; do
echo -n .
# Print a dot every 10 seconds only to shorten line length.
${coreutils}/bin/sleep 10
Expand Down Expand Up @@ -118,7 +118,7 @@ let
${samba}/sbin/smbd -D

echo -n "Waiting for Windows VM to become available..."
while ! ${netcat}/bin/netcat -z 192.168.0.1 22; do
while ! ${netcat-gnu}/bin/netcat -z 192.168.0.1 22; do
echo -n .
${coreutils}/bin/sleep 1
done
Expand Down
2 changes: 1 addition & 1 deletion pkgs/build-support/vm/windows/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pkgs:
let
bootstrapper = import ./bootstrap.nix {
inherit (pkgs) stdenv vmTools writeScript writeText runCommand makeInitrd;
inherit (pkgs) coreutils dosfstools gzip mtools netcat openssh qemu samba;
inherit (pkgs) coreutils dosfstools gzip mtools netcat-gnu openssh qemu samba;
inherit (pkgs) socat vde2 fetchurl python perl cdrkit pathsFromGraph;
inherit (pkgs) gnugrep;
};
Expand Down
6 changes: 3 additions & 3 deletions pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, intltool, gnome2, libxfce4ui,
libxfce4util, xfce4panel, libnotify, lm_sensors, hddtemp, netcat
libxfce4util, xfce4panel, libnotify, lm_sensors, hddtemp, netcat-gnu
}:

stdenv.mkDerivation rec {
Expand All @@ -26,14 +26,14 @@ stdenv.mkDerivation rec {
libnotify
lm_sensors
hddtemp
netcat
netcat-gnu
];

enableParallelBuilding = true;

configureFlags = [
"--with-pathhddtemp=${hddtemp}/bin/hddtemp"
"--with-pathnetcat=${netcat}/bin/netcat"
"--with-pathnetcat=${netcat-gnu}/bin/netcat"
];

meta = {
Expand Down
1 change: 1 addition & 0 deletions pkgs/tools/networking/netcat-openbsd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ stdenv.mkDerivation rec {

installPhase = ''
install -Dm0755 nc $out/bin/nc
install -Dm0644 nc.1 $out/share/man/man1/nc.1
'';

meta = {
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2795,7 +2795,9 @@ in

netboot = callPackage ../tools/networking/netboot {};

netcat = callPackage ../tools/networking/netcat { };
netcat = netcat-openbsd;

netcat-gnu = callPackage ../tools/networking/netcat-gnu { };

netcat-openbsd = callPackage ../tools/networking/netcat-openbsd { };

Expand Down