···5# rewritten to /nix/store/<hash>/bin/python. Interpreters that are
6# already in the store are left untouched.
78-fixupOutputHooks+=('if [ -z "$dontPatchShebangs" ]; then patchShebangs "$prefix"; fi')
910patchShebangs() {
11 local dir="$1"
···5# rewritten to /nix/store/<hash>/bin/python. Interpreters that are
6# already in the store are left untouched.
78+fixupOutputHooks+=('if [ -z "$dontPatchShebangs" -a -e "$prefix" ]; then patchShebangs "$prefix"; fi')
910patchShebangs() {
11 local dir="$1"
···47 '';
4849 postInstall = ''
50- # gross! convince apple to release this as part of CF
51- cp /System/Library/Frameworks/CoreFoundation.framework/Headers/CFAttributedString.h "$out/System/Library/Frameworks/CoreFoundation.framework/Headers"
05253 mv $out/System/* $out
54 rmdir $out/System
···47 '';
4849 postInstall = ''
50+ # gross! convince apple to release these as part of CF
51+ cp /System/Library/Frameworks/CoreFoundation.framework/Headers/{CFAttributedString,CFNotificationCenter}.h \
52+ "$out/System/Library/Frameworks/CoreFoundation.framework/Headers"
5354 mv $out/System/* $out
55 rmdir $out/System
+2-2
pkgs/os-specific/darwin/cctools/port.nix
···1-{ stdenv, fetchurl, autoconf, automake, libtool
2, llvm, libcxx, libcxxabi, clang, openssl, libuuid
3, libobjc ? null
4}:
···18 sha256 = "01f31ijpnplbiyp7ldwzy8vbkn3j3m56n5blsvsav5nlp4lp2g71";
19 };
2021- buildInputs = [ autoconf automake libtool openssl libuuid ] ++
22 # Only need llvm and clang if the stdenv isn't already clang-based (TODO: just make a stdenv.cc.isClang)
23 stdenv.lib.optionals (!stdenv.isDarwin) [ llvm clang ] ++
24 stdenv.lib.optionals stdenv.isDarwin [ libcxxabi libobjc ];
···1+{ stdenv, fetchurl, autoconf, automake, libtool_2
2, llvm, libcxx, libcxxabi, clang, openssl, libuuid
3, libobjc ? null
4}:
···18 sha256 = "01f31ijpnplbiyp7ldwzy8vbkn3j3m56n5blsvsav5nlp4lp2g71";
19 };
2021+ buildInputs = [ autoconf automake libtool_2 openssl libuuid ] ++
22 # Only need llvm and clang if the stdenv isn't already clang-based (TODO: just make a stdenv.cc.isClang)
23 stdenv.lib.optionals (!stdenv.isDarwin) [ llvm clang ] ++
24 stdenv.lib.optionals stdenv.isDarwin [ libcxxabi libobjc ];
···1-https://bugs.gentoo.org/424974
2-3-hack until gzip pulls a newer gnulib version
4-5-From 66712c23388e93e5c518ebc8515140fa0c807348 Mon Sep 17 00:00:00 2001
6-From: Eric Blake <eblake@redhat.com>
7-Date: Thu, 29 Mar 2012 13:30:41 -0600
8-Subject: [PATCH] stdio: don't assume gets any more
9-10-Gnulib intentionally does not have a gets module, and now that C11
11-and glibc have dropped it, we should be more proactive about warning
12-any user on a platform that still has a declaration of this dangerous
13-interface.
14-15---- a/gnu/stdio.in.h
16-+++ b/gnu/stdio.in.h
17-@@ -125,7 +125,6 @@
18- so any use of gets warrants an unconditional warning. Assume it is
19- always declared, since it is required by C89. */
20- #undef gets
21--_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
22-23- #if @GNULIB_FOPEN@
24- # if @REPLACE_FOPEN@