Merge pull request #7845 from spwhitt/misc

Darwin: A couple fixes
This commit is contained in:
Eric Seidel 2015-05-15 09:06:00 -07:00
commit f93a8ee110
9 changed files with 25 additions and 5 deletions

View file

@ -60,6 +60,9 @@ stdenv.mkDerivation rec {
];
configureFlags = [ "--enable-shared" "--enable-pthread" ]
# Without this fails due to not finding X11/Xlib.h
# Not sure why this isn't required on Linux
++ ops stdenv.isDarwin [ "--without-tcl" "--without-tk" ]
++ op useRailsExpress "--with-baseruby=${baseruby}/bin/ruby";
installFlags = stdenv.lib.optionalString docSupport "install-doc";

View file

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
buildInputs = [ python bzip2 zlib gmp openssl boost ];
configurePhase = ''
python configure.py --prefix=$out --with-bzip2 --with-zlib ${if openssl != null then "--with-openssl" else ""} ${extraConfigureFlags}
python configure.py --prefix=$out --with-bzip2 --with-zlib ${if openssl != null then "--with-openssl" else ""} ${extraConfigureFlags}${if stdenv.cc.isClang then " --cc=clang" else "" }
'';
enableParallelBuilding = true;

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation {
meta = {
description = "A simple library designed for decoding and generation of MPEG TS and DVB PSI tables according to standards ISO/IEC 13818 and ITU-T H.222.0";
homepage = http://www.videolan.org/developers/libdvbpsi.html ;
platforms = stdenv.lib.platforms.linux;
platforms = stdenv.lib.platforms.unix;
license = stdenv.lib.licenses.lgpl21;
};

View file

@ -7,6 +7,11 @@ stdenv.mkDerivation rec {
url = "http://dist.schmorp.de/libev/${name}.tar.gz";
sha256 = "1jyw7qbl0spxqa0dccj9x1jsw7cj7szff43cq4acmklnra4mzz48";
};
# Version 4.19 is not valid C11 (which Clang default to)
# Check if this is still necessary on upgrade
NIX_CFLAGS_COMPILE = if stdenv.cc.isClang then "-std=c99" else null;
meta = {
description = "A high-performance event loop/event model with lots of features";
maintainers = [ stdenv.lib.maintainers.raskin ];

View file

@ -42,6 +42,12 @@ stdenv.mkDerivation rec {
sha256 = "000d50yzyysbr9ldhvnbpzn35vplqm08dnmh55wc5zk273gy383f";
};
# Configure script searches for a symbol which does not exist in jemalloc on Darwin
# Reported upstream in https://github.com/tatsuhiro-t/nghttp2/issues/233
postPatch = if (stdenv.isDarwin && optJemalloc != null) then ''
substituteInPlace configure --replace "malloc_stats_print" "je_malloc_stats_print"
'' else null;
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ optJansson optBoost optLibxml2 optJemalloc ]
++ stdenv.lib.optionals hasApp [ optOpenssl optLibev optZlib ];

View file

@ -19,7 +19,8 @@ stdenv.mkDerivation rec {
buildInputs = [ nasm ];
buildFlags = [ arch ];
buildFlags = [ arch ]
++ stdenv.lib.optionals stdenv.cc.isClang [ "CC=clang" "LD=clang" ];
installPhase = ''
mkdir -p $out/bin

View file

@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
buildInputs = [ unzip ];
buildFlags = if stdenv.cc.isClang then [ "CC=clang" ] else null;
installPhase = ''
mkdir -p $out/bin
cp ent $out/bin/

View file

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

View file

@ -75,6 +75,6 @@ stdenv.mkDerivation rec {
meta = {
homepage = "http://curl.haxx.se/";
description = "A command line tool for transferring files with URL syntax";
platforms = stdenv.lib.platforms.all;
platforms = with stdenv.lib.platforms; allBut darwin;
};
}