@@ -7,9 +7,12 @@ stdenv.mkDerivation rec {
7 url = "http://www.gropp.org/bwm-ng/${name}.tar.gz";
7 url = "http://www.gropp.org/bwm-ng/${name}.tar.gz";
8 sha256 = "1pgzc8y2y73n72qvbd2g0dkbkw5h0f83k5h9id1rsck8w9c464y1";
8 sha256 = "1pgzc8y2y73n72qvbd2g0dkbkw5h0f83k5h9id1rsck8w9c464y1";
11 buildInputs = [ ncurses ];
11 buildInputs = [ ncurses ];
13+ # This code uses inline in the gnu89 sense: see http://clang.llvm.org/compatibility.html#inline
14+ NIX_CFLAGS_COMPILE = if stdenv.cc.isClang then "-std=gnu89" else null;
13 meta = with stdenv.lib; {
16 meta = with stdenv.lib; {
14 description = "A small and simple console-based live network and disk io bandwidth monitor";
17 description = "A small and simple console-based live network and disk io bandwidth monitor";
15 homepage = "http://www.gropp.org/?id=projects&sub=bwm-ng";
18 homepage = "http://www.gropp.org/?id=projects&sub=bwm-ng";