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