iftop: fix Darwin build

+2 -2
+2 -2
pkgs/tools/networking/iftop/default.nix
··· 10 11 # Explicitly link against libgcc_s, to work around the infamous 12 # "libgcc_s.so.1 must be installed for pthread_cancel to work". 13 - LDFLAGS = "-lgcc_s"; 14 15 preConfigure = '' 16 cp ${automake}/share/automake*/config.{sub,guess} config ··· 27 ''; 28 license = licenses.gpl2Plus; 29 homepage = http://ex-parrot.com/pdw/iftop/; 30 - platforms = platforms.linux; 31 maintainers = [ maintainers.mornfall ]; 32 }; 33 }
··· 10 11 # Explicitly link against libgcc_s, to work around the infamous 12 # "libgcc_s.so.1 must be installed for pthread_cancel to work". 13 + LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s"; 14 15 preConfigure = '' 16 cp ${automake}/share/automake*/config.{sub,guess} config ··· 27 ''; 28 license = licenses.gpl2Plus; 29 homepage = http://ex-parrot.com/pdw/iftop/; 30 + platforms = platforms.unix; 31 maintainers = [ maintainers.mornfall ]; 32 }; 33 }