git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #7845 from spwhitt/misc
f93a8eeEric Seidel
pkgs/development/interpreters/ruby/ruby-1.8.7.nix+3
@@ -60,6 +60,9 @@ stdenv.mkDerivation rec {
60 ];
60 ];
61
61
62 configureFlags = [ "--enable-shared" "--enable-pthread" ]
62 configureFlags = [ "--enable-shared" "--enable-pthread" ]
63+ # Without this fails due to not finding X11/Xlib.h
64+ # Not sure why this isn't required on Linux
65+ ++ ops stdenv.isDarwin [ "--without-tcl" "--without-tk" ]
63 ++ op useRailsExpress "--with-baseruby=${baseruby}/bin/ruby";
66 ++ op useRailsExpress "--with-baseruby=${baseruby}/bin/ruby";
64
67
65 installFlags = stdenv.lib.optionalString docSupport "install-doc";
68 installFlags = stdenv.lib.optionalString docSupport "install-doc";
pkgs/development/libraries/botan/generic.nix+1−1
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
21 buildInputs = [ python bzip2 zlib gmp openssl boost ];
21 buildInputs = [ python bzip2 zlib gmp openssl boost ];
22
22
23 configurePhase = ''
23 configurePhase = ''
24− python configure.py --prefix=$out --with-bzip2 --with-zlib ${if openssl != null then "--with-openssl" else ""} ${extraConfigureFlags}
24+ 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 "" }
25 '';
25 '';
26
26
27 enableParallelBuilding = true;
27 enableParallelBuilding = true;
pkgs/development/libraries/libdvbpsi/default.nix+1−1
@@ -12,7 +12,7 @@ stdenv.mkDerivation {
12 meta = {
12 meta = {
13 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";
13 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";
14 homepage = http://www.videolan.org/developers/libdvbpsi.html ;
14 homepage = http://www.videolan.org/developers/libdvbpsi.html ;
15− platforms = stdenv.lib.platforms.linux;
15+ platforms = stdenv.lib.platforms.unix;
16 license = stdenv.lib.licenses.lgpl21;
16 license = stdenv.lib.licenses.lgpl21;
17 };
17 };
18
18
pkgs/development/libraries/libev/default.nix+5
@@ -7,6 +7,11 @@ stdenv.mkDerivation rec {
7 url = "http://dist.schmorp.de/libev/${name}.tar.gz";
7 url = "http://dist.schmorp.de/libev/${name}.tar.gz";
8 sha256 = "1jyw7qbl0spxqa0dccj9x1jsw7cj7szff43cq4acmklnra4mzz48";
8 sha256 = "1jyw7qbl0spxqa0dccj9x1jsw7cj7szff43cq4acmklnra4mzz48";
9 };
9 };
10+
11+ # Version 4.19 is not valid C11 (which Clang default to)
12+ # Check if this is still necessary on upgrade
13+ NIX_CFLAGS_COMPILE = if stdenv.cc.isClang then "-std=c99" else null;
14+
10 meta = {
15 meta = {
11 description = "A high-performance event loop/event model with lots of features";
16 description = "A high-performance event loop/event model with lots of features";
12 maintainers = [ stdenv.lib.maintainers.raskin ];
17 maintainers = [ stdenv.lib.maintainers.raskin ];
pkgs/development/libraries/nghttp2/default.nix+6
@@ -42,6 +42,12 @@ stdenv.mkDerivation rec {
42 sha256 = "000d50yzyysbr9ldhvnbpzn35vplqm08dnmh55wc5zk273gy383f";
42 sha256 = "000d50yzyysbr9ldhvnbpzn35vplqm08dnmh55wc5zk273gy383f";
43 };
43 };
44
44
45+ # Configure script searches for a symbol which does not exist in jemalloc on Darwin
46+ # Reported upstream in https://github.com/tatsuhiro-t/nghttp2/issues/233
47+ postPatch = if (stdenv.isDarwin && optJemalloc != null) then ''
48+ substituteInPlace configure --replace "malloc_stats_print" "je_malloc_stats_print"
49+ '' else null;
50+
45 nativeBuildInputs = [ pkgconfig ];
51 nativeBuildInputs = [ pkgconfig ];
46 buildInputs = [ optJansson optBoost optLibxml2 optJemalloc ]
52 buildInputs = [ optJansson optBoost optLibxml2 optJemalloc ]
47 ++ stdenv.lib.optionals hasApp [ optOpenssl optLibev optZlib ];
53 ++ stdenv.lib.optionals hasApp [ optOpenssl optLibev optZlib ];
pkgs/tools/misc/bandwidth/default.nix+2−1
@@ -19,7 +19,8 @@ stdenv.mkDerivation rec {
19
19
20 buildInputs = [ nasm ];
20 buildInputs = [ nasm ];
21
21
22− buildFlags = [ arch ];
22+ buildFlags = [ arch ]
23+ ++ stdenv.lib.optionals stdenv.cc.isClang [ "CC=clang" "LD=clang" ];
23
24
24 installPhase = ''
25 installPhase = ''
25 mkdir -p $out/bin
26 mkdir -p $out/bin
pkgs/tools/misc/ent/default.nix+2
@@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
14
14
15 buildInputs = [ unzip ];
15 buildInputs = [ unzip ];
16
16
17+ buildFlags = if stdenv.cc.isClang then [ "CC=clang" ] else null;
18+
17 installPhase = ''
19 installPhase = ''
18 mkdir -p $out/bin
20 mkdir -p $out/bin
19 cp ent $out/bin/
21 cp ent $out/bin/
pkgs/tools/networking/bwm-ng/default.nix+4−1
@@ -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";
9 };
9 };
10−
10+
11 buildInputs = [ ncurses ];
11 buildInputs = [ ncurses ];
12
12
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;
15+
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";
pkgs/tools/networking/curl/7.15.nix+1−1
@@ -75,6 +75,6 @@ stdenv.mkDerivation rec {
75 meta = {
75 meta = {
76 homepage = "http://curl.haxx.se/";
76 homepage = "http://curl.haxx.se/";
77 description = "A command line tool for transferring files with URL syntax";
77 description = "A command line tool for transferring files with URL syntax";
78− platforms = stdenv.lib.platforms.all;
78+ platforms = with stdenv.lib.platforms; allBut darwin;
79 };
79 };
80}
80}