diff --git a/pkgs/tools/networking/iftop/default.nix b/pkgs/tools/networking/iftop/default.nix index cb1bf546bf60..a7fc4414f2c9 100644 --- a/pkgs/tools/networking/iftop/default.nix +++ b/pkgs/tools/networking/iftop/default.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { # Explicitly link against libgcc_s, to work around the infamous # "libgcc_s.so.1 must be installed for pthread_cancel to work". - LDFLAGS = "-lgcc_s"; + LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s"; preConfigure = '' cp ${automake}/share/automake*/config.{sub,guess} config @@ -27,7 +27,7 @@ stdenv.mkDerivation rec { ''; license = licenses.gpl2Plus; homepage = http://ex-parrot.com/pdw/iftop/; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = [ maintainers.mornfall ]; }; }