···10, zlib ? null, extraPackages ? []
11, dyld ? null # TODO: should this be a setup-hook on dyld?
12, setupHook ? ./setup-hook.sh
013}:
1415with stdenv.lib;
···41 # The wrapper scripts use 'cat', so we may need coreutils.
42 coreutils = if nativeTools then null else coreutils;
4344- passthru = { inherit nativeTools nativeLibc nativePrefix; };
4546 buildCommand =
47 ''
···10, zlib ? null, extraPackages ? []
11, dyld ? null # TODO: should this be a setup-hook on dyld?
12, setupHook ? ./setup-hook.sh
13+, isGNU ? false, isClang ? false
14}:
1516with stdenv.lib;
···42 # The wrapper scripts use 'cat', so we may need coreutils.
43 coreutils = if nativeTools then null else coreutils;
4445+ passthru = { inherit nativeTools nativeLibc nativePrefix isGNU isClang; };
4647 buildCommand =
48 ''
···1213 nativeBuildInputs = [ pkgconfig ];
1415- configureFlags = if (stdenv.cc.cc.isClang or false)
16 then [ "--disable-werror" ] else null;
1718 CXXFLAGS="--std=gnu++0x"; # For c++11 constants in lcms2.h
···1213 nativeBuildInputs = [ pkgconfig ];
1415+ configureFlags = if stdenv.cc.isClang
16 then [ "--disable-werror" ] else null;
1718 CXXFLAGS="--std=gnu++0x"; # For c++11 constants in lcms2.h
+1-1
pkgs/development/libraries/libfpx/default.nix
···12 NIX_CFLAGS_COMPILE = if stdenv.isDarwin then "-D__unix" else null;
1314 # This dead code causes a duplicate symbol error in Clang so just remove it
15- postPatch = if (stdenv.cc.cc.isClang or false) then ''
16 substituteInPlace jpeg/ejpeg.h --replace "int No_JPEG_Header_Flag" ""
17 '' else null;
18
···12 NIX_CFLAGS_COMPILE = if stdenv.isDarwin then "-D__unix" else null;
1314 # This dead code causes a duplicate symbol error in Clang so just remove it
15+ postPatch = if stdenv.cc.isClang then ''
16 substituteInPlace jpeg/ejpeg.h --replace "int No_JPEG_Header_Flag" ""
17 '' else null;
18
+1-1
pkgs/development/libraries/libmad/default.nix
···12 # optimize.diff is taken from https://projects.archlinux.org/svntogit/packages.git/tree/trunk/optimize.diff?h=packages/libmad
13 # It is included here in order to fix a build failure in Clang
14 # But it may be useful to fix other, currently unknown problems as well
15- ++ stdenv.lib.optional (stdenv.cc.cc.isClang or false) [ ./optimize.diff ];
1617 nativeBuildInputs = [ autoconf ];
18
···12 # optimize.diff is taken from https://projects.archlinux.org/svntogit/packages.git/tree/trunk/optimize.diff?h=packages/libmad
13 # It is included here in order to fix a build failure in Clang
14 # But it may be useful to fix other, currently unknown problems as well
15+ ++ stdenv.lib.optional stdenv.cc.isClang [ ./optimize.diff ];
1617 nativeBuildInputs = [ autoconf ];
18
+1-1
pkgs/development/libraries/librevenge/default.nix
···23 # Clang generates warnings in Boost's header files
24 # -Werror causes these warnings to be interpreted as errors
25 # Simplest solution: disable -Werror
26- configureFlags = if (stdenv.cc.cc.isClang or false)
27 then [ "--disable-werror" ] else null;
2829 meta = {
···23 # Clang generates warnings in Boost's header files
24 # -Werror causes these warnings to be interpreted as errors
25 # Simplest solution: disable -Werror
26+ configureFlags = if stdenv.cc.isClang
27 then [ "--disable-werror" ] else null;
2829 meta = {
···13 # ./configure time check for any of this.
14 buildInputs = [ libevent openssl zlib torsocks ];
1516- CFLAGS = stdenv.lib.optionalString (stdenv.cc.cc.isGNU or false) "-lgcc_s";
1718 # Patch 'torify' to point directly to torsocks.
19 patchPhase = ''
···13 # ./configure time check for any of this.
14 buildInputs = [ libevent openssl zlib torsocks ];
1516+ CFLAGS = stdenv.lib.optionalString stdenv.cc.isGNU "-lgcc_s";
1718 # Patch 'torify' to point directly to torsocks.
19 patchPhase = ''