From 806291b42e3fdaeeb86d7eb5a736035949df9f63 Mon Sep 17 00:00:00 2001 From: Benjamin Staffin Date: Sun, 5 Jul 2015 17:47:54 -0700 Subject: [PATCH] iftop: fix Darwin build --- pkgs/tools/networking/iftop/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ]; }; }