···3131 '';
3232in
3333composableDerivation {
3434- # use gccApple to compile on darwin
3535- mkDerivation = ( if stdenv.isDarwin
3636- then stdenvAdapters.overrideCC stdenv gccApple
3737- else stdenv ).mkDerivation;
3834} (fix: {
39354036 name = "vim_configurable-7.4.516";
-4
pkgs/applications/editors/vim/qvim.nix
···6677let inherit (args.composableDerivation) composableDerivation edf; in
88composableDerivation {
99- # use gccApple to compile on darwin
1010- mkDerivation = ( if stdenv.isDarwin
1111- then stdenvAdapters.overrideCC stdenv gccApple
1212- else stdenv ).mkDerivation;
139} (fix: {
14101511 name = "qvim-7.4." + tag;
+2-3
pkgs/build-support/cc-wrapper/default.nix
···99, cc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? stdenv.shell
1010, zlib ? null, extraPackages ? []
1111, setupHook ? ./setup-hook.sh
1212-, libcxx ? null, libcxxabi ? null
1312}:
14131514with stdenv.lib;
···35343635 preferLocalBuild = true;
37363838- inherit cc shell libcxx libcxxabi;
3737+ inherit cc shell;
3938 libc = if nativeLibc then null else libc;
4039 binutils = if nativeTools then null else binutils;
4140 # The wrapper scripts use 'cat', so we may need coreutils.
···8887 ''
89889089 + (if nativeTools then ''
9191- ccPath="${nativePrefix}/bin"
9090+ ccPath="${if stdenv.isDarwin then cc else nativePrefix}/bin"
9291 ldPath="${nativePrefix}/bin"
9392 '' else ''
9493 echo $cc > $out/nix-support/orig-cc
···12121313 nativeBuildInputs = [ m4 ];
14141515+ patches = if stdenv.isDarwin then [ ./need-size-t.patch ] else null;
1616+1517 configureFlags =
1618 # Build a "fat binary", with routines for several sub-architectures
1719 # (x86), except on Solaris where some tests crash with "Memory fault".
+18
pkgs/development/libraries/gmp/need-size-t.patch
···11+diff --git a/gmp-h.in b/gmp-h.in
22+index 7deb67a..240d663 100644
33+--- a/gmp-h.in
44++++ b/gmp-h.in
55+@@ -46,13 +46,11 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
66+ #ifndef __GNU_MP__
77+ #define __GNU_MP__ 5
88+99+-#define __need_size_t /* tell gcc stddef.h we only want size_t */
1010+ #if defined (__cplusplus)
1111+ #include <cstddef> /* for size_t */
1212+ #else
1313+ #include <stddef.h> /* for size_t */
1414+ #endif
1515+-#undef __need_size_t
1616+1717+ /* Instantiated by configure. */
1818+ #if ! defined (__GMP_WITHIN_CONFIGURE)