git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #8658 from benley/iftop-darwin

iftop: fix Darwin build

commit6d99ecf300c2a1dd43ea28e3e46e8747d4ffbf03 authorArseniy Seroka <jagajaga@users.noreply.github.com> dateMon 6 Jul 2015, 14:27 (11 years ago) parent83083da806291b
1 file changed+2−2
pkgs/tools/networking/iftop/default.nix+2−2
pkgs/tools/networking/iftop/default.nix+2−2
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010
1111 # Explicitly link against libgcc_s, to work around the infamous
1212 # "libgcc_s.so.1 must be installed for pthread_cancel to work".
13− LDFLAGS = "-lgcc_s";
13+ LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
1414
1515 preConfigure = ''
1616 cp ${automake}/share/automake*/config.{sub,guess} config
@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
2727 '';
2828 license = licenses.gpl2Plus;
2929 homepage = http://ex-parrot.com/pdw/iftop/;
30− platforms = platforms.linux;
30+ platforms = platforms.unix;
3131 maintainers = [ maintainers.mornfall ];
3232 };
3333}