tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
xcbuild: update meta and comments
Matthew Bauer
9 years ago
4685bd78
437bdc5e
+19
-9
4 changed files
expand all
collapse all
unified
split
pkgs
os-specific
darwin
apple-source-releases
Librpcsvc
default.nix
adv_cmds
xcode.nix
network_cmds
default.nix
tools
misc
contacts
default.nix
-1
pkgs/os-specific/darwin/apple-source-releases/Librpcsvc/default.nix
···
17
17
'';
18
18
19
19
meta = with stdenv.lib; {
20
20
-
description = "";
21
20
maintainers = with maintainers; [ matthewbauer ];
22
21
platforms = platforms.darwin;
23
22
license = licenses.apsl20;
+7
-1
pkgs/os-specific/darwin/apple-source-releases/adv_cmds/xcode.nix
···
1
1
{ stdenv, appleDerivation, fetchurl, xcbuild, libcxx }:
2
2
3
3
appleDerivation {
4
4
-
# disable pkill from build
4
4
+
5
5
+
# pkill requires special private headers that are unavailable in
6
6
+
# NixPkgs. These ones are needed:
7
7
+
# - xpc/xpxc.h
8
8
+
# - os/base_private.h
9
9
+
# - _simple.h
10
10
+
# We disable it here for now. TODO: build pkill inside adv_cmds
5
11
patchPhase = ''
6
12
substituteInPlace adv_cmds.xcodeproj/project.pbxproj \
7
13
--replace "FD201DC214369B4200906237 /* pkill.c in Sources */," ""
+11
-7
pkgs/os-specific/darwin/apple-source-releases/network_cmds/default.nix
···
5
5
6
6
NIX_CFLAGS_COMPILE = " -I./unbound -I${xnu}/Library/Frameworks/System.framework/Headers/ -D__APPLE_USE_RFC_2292 -DIPV6_DONTFRAG=14 -DINET6";
7
7
8
8
+
# "spray" requires some files that aren't compiling correctly in xcbuild.
9
9
+
# "rtadvd" seems to fail with some missing constants.
10
10
+
# We disable spray and rtadvd here for now.
8
11
patchPhase = ''
9
9
-
# disable spray, rtadvd
10
12
substituteInPlace network_cmds.xcodeproj/project.pbxproj \
11
13
--replace "7294F0EA0EE8BAC80052EC88 /* PBXTargetDependency */," "" \
12
14
--replace "7216D34D0EE89FEC00AE70E4 /* PBXTargetDependency */," ""
···
22
24
install */*.$n $out/share/man/man$n
23
25
done
24
26
25
25
-
mkdir -p $out/etc/
26
26
-
install rtadvd.tproj/rtadvd.conf ip6addrctl.tproj/ip6addrctl.conf $out/etc/
27
27
+
# TODO: patch files to load from $out/ instead of /usr/
27
28
28
28
-
mkdir -p $out/local/OpenSourceVersions/
29
29
-
install network_cmds.plist $out/local/OpenSourceVersions/
29
29
+
# mkdir -p $out/etc/
30
30
+
# install rtadvd.tproj/rtadvd.conf ip6addrctl.tproj/ip6addrctl.conf $out/etc/
30
31
31
31
-
mkdir -p $out/System/Library/LaunchDaemons
32
32
-
install kdumpd.tproj/com.apple.kdumpd.plist $out/System/Library/LaunchDaemons
32
32
+
# mkdir -p $out/local/OpenSourceVersions/
33
33
+
# install network_cmds.plist $out/local/OpenSourceVersions/
34
34
+
35
35
+
# mkdir -p $out/System/Library/LaunchDaemons
36
36
+
# install kdumpd.tproj/com.apple.kdumpd.plist $out/System/Library/LaunchDaemons
33
37
'';
34
38
35
39
meta = {
+1
pkgs/tools/misc/contacts/default.nix
···
16
16
cp ./contacts-*/Build/Products/Default/contacts $out/bin
17
17
'';
18
18
19
19
+
## FIXME: the framework setup hook isn't adding these correctly
19
20
NIX_LDFLAGS = " -F${Foundation}/Library/Frameworks/ -F${AddressBook}/Library/Frameworks/";
20
21
21
22
meta = with stdenv.lib; {