Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkgs/development/tools/parsing/antlr/2.7.7.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ stdenv.mkDerivation {
walk parse trees.
'';
homepage = http://www.antlr.org/;
platforms = platforms.linux;
platforms = platforms.unix;
};
}
21 changes: 21 additions & 0 deletions pkgs/development/tools/xcbuild/platform.nix
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,27 @@ let
};
PackageTypes = [ "com.apple.package-type.wrapper.application" ];
}
{
Type = "ProductType";
Identifier = "com.apple.product-type.framework";
Name = "Bundle";
DefaultBuildProperties = {
FULL_PRODUCT_NAME = "$(WRAPPER_NAME)";
MACH_O_TYPE = "mh_bundle";
WRAPPER_PREFIX = "";
WRAPPER_SUFFIX = ".$(WRAPPER_EXTENSION)";
WRAPPER_EXTENSION = "bundle";
WRAPPER_NAME = "$(WRAPPER_PREFIX)$(PRODUCT_NAME)$(WRAPPER_SUFFIX)";
FRAMEWORK_FLAG_PREFIX = "-framework";
LIBRARY_FLAG_PREFIX = "-l";
LIBRARY_FLAG_NOSPACE = "YES";
STRIP_STYLE = "non-global";
};
PackageTypes = [ "com.apple.package-type.wrapper" ];
IsWrapper = "YES";
HasInfoPlist = "YES";
HasInfoPlistStrings = "YES";
}
];

in
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/tools/xcbuild/setup-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ xcbuildBuildPhase() {

echo "running xcodebuild"

xcodebuild OTHER_CFLAGS="$NIX_CFLAGS_COMPILE" OTHER_CPLUSPLUSFLAGS="$NIX_CFLAGS_COMPILE" OTHER_LDFLAGS="$NIX_LDFLAGS" build
xcodebuild SYMROOT=$PWD/Products OBJROOT=$PWD/Intermediates $xcbuildFlags build

runHook postBuild
}
Expand Down
3 changes: 3 additions & 0 deletions pkgs/development/tools/xcbuild/wrapper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ stdenv.mkDerivation {
ln -s $file
done

mkdir $out/usr
ln -s $out/bin $out/usr/bin

mkdir -p $out/Library/Xcode/
ln -s ${xcbuild}/Library/Xcode/Specifications $out/Library/Xcode/Specifications

Expand Down
19 changes: 19 additions & 0 deletions pkgs/os-specific/darwin/CoreSymbolication/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ fetchFromGitHub, stdenv }:

# Reverse engineered CoreSymbolication to make dtrace buildable

stdenv.mkDerivation rec {
name = "CoreSymbolication";

src = fetchFromGitHub {
repo = name;
owner = "matthewbauer";
rev = "671fcb66c82eac1827f3f53dc4cc4e9b1b94da0a";
sha256 = "0qpw46gwgjxiwqqjxksb8yghp2q8dwad6hzaf4zl82xpvk9n5ahj";
};

installPhase = ''
mkdir -p $out/include
cp -r CoreSymbolication $out/include
'';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ stdenv, appleDerivation }:

appleDerivation {
phases = [ "unpackPhase" "installPhase" ];

installPhase = ''
mkdir -p $out/include
cp MacTypes.h $out/include
cp ConditionalMacros.h $out/include
cp MacErrors.h $out/include

substituteInPlace $out/include/MacTypes.h \
--replace "CarbonCore/" ""
'';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{appleDerivation, xcbuild, osx_private_sdk, apple_sdk, libsecurity_cssm}:
appleDerivation {
name = "libsecurity_authorization";
buildInputs = [xcbuild libsecurity_cssm];
postUnpack = "sourceRoot=\${sourceRoot}/libsecurity_authorization";
NIX_CFLAGS_COMPILE = "-I../sec -Iinclude";
patchPhase = ''
cp lib/*.h ../sec/Security

# private headers
mkdir -p include/CoreFoundation
cp ${osx_private_sdk.src}/PrivateSDK10.10.sparse.sdk/System/Library/Frameworks/CoreFoundation.framework/PrivateHeaders/CFXPCBridge.h include/CoreFoundation
mkdir -p include/xpc
cp ${apple_sdk.sdk}/include/xpc/* include/xpc
cp ${osx_private_sdk}/include/xpc/private.h include/xpc
'';
installPhase = ''
# have no idea why it's called libsecurityd
install -D Products/Release/libsecurityd.a $out/lib/libsecurity_utilities.a

mkdir -p $out/include/security_utilities
cp -r Products/Release/derived_src/security_utilities $out/include/security_utilities
cp lib/*.h $out/include/security_utilities
ln -s $out/include/security_utilities $out/include/Security
'';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{appleDerivation, xcbuild}:
appleDerivation {
name = "libsecurity_comcryption";
buildInputs = [xcbuild];
postUnpack = "sourceRoot=\${sourceRoot}/libsecurity_comcryption";
installPhase = ''
mkdir -p $out/lib $out/include/security_comcryption
cp Products/Release/ComCryption.a $out/lib/libComCryption.a
cp lib/*.h $out/include/security_comcryption
'';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{appleDerivation, xcbuild, libsecurity_cssm, libsecurity_asn1}:
appleDerivation {
name = "libsecurity_cryptkit";
buildInputs = [xcbuild libsecurity_cssm libsecurity_asn1];
postUnpack = "sourceRoot=\${sourceRoot}/libsecurity_cryptkit";
patchPhase = ''
rm ../include/security_asn1
'';
NIX_CFLAGS_COMPILE = "-I../sec";
installPhase = ''
mkdir -p $out/lib $out/include/security_cryptkit
cp Products/Release/CryptKit.a $out/lib/libCryptKit.a
cp lib/*.h $out/include/security_cryptkit
'';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ appleDerivation, xcbuild, apple_sdk, osx_private_sdk, libsecurity_keychain
, xnu, libsecurity_cssm, corecrypto, zlib }:
appleDerivation {
name = "libsecurity_transform";
buildInputs = [ xcbuild libsecurity_keychain libsecurity_cssm
corecrypto apple_sdk.frameworks.CoreServices
zlib ];
postUnpack = "sourceRoot=\${sourceRoot}/libsecurity_transform";
NIX_CFLAGS_COMPILE = "-Iinclude -Wno-error -framework CoreServices";
NIX_LDFLAGS = "-framework CoreServices";
preBuild = ''
mkdir -p include/xpc
cp ${apple_sdk.sdk}/include/xpc/* include/xpc
cp ${osx_private_sdk}/include/xpc/private.h include/xpc
mkdir -p include/Security
cp lib/*.h include/Security
'';
patchPhase = ''
substituteInPlace libsecurity_transform.xcodeproj/project.pbxproj \
--replace \
"{isa = PBXFileReference; explicitFileType = archive.ar; path = libsecurity_transform.a; sourceTree = BUILT_PRODUCTS_DIR; };" \
"{isa = PBXFileReference; explicitFileType = compiled.mach-o.dylib; path = libsecurity_transform.dylib; sourceTree = BUILT_PRODUCTS_DIR; };"
'';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{ stdenv, appleDerivation, xcbuild, gnumake, Security
, libsecurity_utilities, libsecurity_cdsa_utilities }:

appleDerivation {
buildInputs = [ xcbuild libsecurity_utilities libsecurity_cdsa_utilities ];

DSTROOT = "$out";

NIX_CFLAGS_COMPILE = "-I.";
preBuild = ''
mkdir -p Security
cp ${Security}/Library/Frameworks/Security.framework/Headers/*.h Security
'';

patchPhase = ''
substituteInPlace SmartCardServices.xcodeproj/project.pbxproj \
--replace "/usr/bin/gnumake" "${gnumake}/bin/make"
substituteInPlace src/PCSC/PCSC.exp \
--replace _PCSCVersionString "" \
--replace _PCSCVersionNumber ""
substituteInPlace Makefile.installPhase \
--replace chown "# chown" \
--replace /usr/bin/ ""
'';

installPhase = ''
make -f Makefile.installPhase install
make -f Makefile-exec.installPhase install
mv $out/usr/* $out
rmdir $out/usr

mkdir -p $out/Library/Frameworks
cp -r Products/Release/PCSC.bundle $out/Library/Frameworks/PCSC.framework
'';

meta = with stdenv.lib; {
maintainers = with maintainers; [ matthewbauer ];
platforms = platforms.darwin;
license = licenses.apsl20;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ appleDerivation {
# temporary install phase until xcodebuild has "install" support
installPhase = ''
mkdir -p $out/bin/
install adv_cmds-*/Build/Products/Release/* $out/bin/
install Products/Release/* $out/bin/

for n in 1 8; do
mkdir -p $out/share/man/man$n
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ appleDerivation rec {
# temporary install phase until xcodebuild has "install" support
installPhase = ''
mkdir -p $out/bin/
install basic_cmds-*/Build/Products/Release/* $out/bin/
install Products/Release/* $out/bin/

for n in 1; do
mkdir -p $out/share/man/man$n
Expand Down
25 changes: 22 additions & 3 deletions pkgs/os-specific/darwin/apple-source-releases/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ let
# now it's staying here.
versions = {
"osx-10.11.6" = {
SmartCardServices = "55111";
dtrace = "168";
xnu = "3248.60.10";
libpthread = "138.10.4";
Expand Down Expand Up @@ -53,6 +54,7 @@ let
ICU = "531.48";
libdispatch = "442.1.4";
Security = "57031.40.6";
security_systemkeychain = "55202";

IOAudioFamily = "203.3";
IOFireWireFamily = "458";
Expand Down Expand Up @@ -99,6 +101,7 @@ let
libsecurity_cdsa_plugin = "55001";
libsecurity_cdsa_utilities = "55006";
libsecurity_cdsa_utils = "55000";
libsecurity_cms = "55002.2";
libsecurity_codesigning = "55037.15";
libsecurity_cssm = "55005.5";
libsecurity_filedb = "55016.1";
Expand All @@ -107,7 +110,9 @@ let
libsecurity_ocspd = "55010";
libsecurity_pkcs12 = "55000";
libsecurity_sd_cspdl = "55003";
libsecurity_smime = "55004.3";
libsecurity_utilities = "55030.3";
libsecurity_ssl = "55003";
libsecurityd = "55004";
};
"osx-10.7.4" = {
Expand Down Expand Up @@ -191,17 +196,21 @@ let
adv_cmds = applePackage "adv_cmds" "osx-10.5.8" "102ssayxbg9wb35mdmhswbnw0bg7js3pfd8fcbic83c5q3bqa6c6" {};

packages = {
SmartCardServices = applePackage "SmartCardServices" "osx-10.11.6" "1qqjlbi6j37mw9p3qpfnwf14xh9ff8h5786bmvzwc4kblfglabkm" {};

inherit (adv_cmds) ps locale;
architecture = applePackage "architecture" "osx-10.11.6" "1pbpjcd7is69hn8y29i98ci0byik826if8gnp824ha92h90w0fq3" {};
bootstrap_cmds = applePackage "bootstrap_cmds" "dev-tools-7.0" "1v5dv2q3af1xwj5kz0a5g54fd5dm6j4c9dd2g66n4kc44ixyrhp3" {};
bsdmake = applePackage "bsdmake" "dev-tools-3.2.6" "11a9kkhz5bfgi1i8kpdkis78lhc6b5vxmhd598fcdgra1jw4iac2" {};
CarbonHeaders = applePackage "CarbonHeaders" "osx-10.6.2" "1zam29847cxr6y9rnl76zqmkbac53nx0szmqm9w5p469a6wzjqar" {};
CarbonHeaders-full = applePackage "CarbonHeaders/full.nix" "osx-10.6.2" "1zam29847cxr6y9rnl76zqmkbac53nx0szmqm9w5p469a6wzjqar" {};
CF = applePackage "CF" "osx-10.10.5" "07f5psjxi7wyd13ci4x83ya5hy6p69sjfqcpp2mmxdlhd8yzkf74" {};
CommonCrypto = applePackage "CommonCrypto" "osx-10.11.6" "0vllfpb8f4f97wj2vpdd7w5k9ibnsbr6ff1zslpp6q323h01n25y" {};
configd = applePackage "configd" "osx-10.8.5" "1gxakahk8gallf16xmhxhprdxkh3prrmzxnmxfvj0slr0939mmr2" {};
copyfile = applePackage "copyfile" "osx-10.11.6" "1rkf3iaxmjz5ycgrmf0g971kh90jb2z1zqxg5vlqz001s4y457gs" {};
Csu = applePackage "Csu" "osx-10.11.6" "0yh5mslyx28xzpv8qww14infkylvc1ssi57imhi471fs91sisagj" {};
dtrace = applePackage "dtrace" "osx-10.11.6" "0pp5x8dgvzmg9vvg32hpy2brm17dpmbwrcr4prsmdmfvd4767wc0" {};
dtrace = applePackage "dtrace" "osx-10.11.6" "04mi0jy8gy0w59rk9i9dqznysv6fzz1v5mq779s41cp308yi0h1c" {};
dtrace-xcode = applePackage "dtrace/xcode.nix" "osx-10.11.6" "04mi0jy8gy0w59rk9i9dqznysv6fzz1v5mq779s41cp308yi0h1c" {};
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we would merge these into one- but we run into an issue in bootstrapping.

dyld = applePackage "dyld" "osx-10.11.6" "0qkjmjazm2zpgvwqizhandybr9cm3gz9pckx8rmf0py03faafc08" {};
eap8021x = applePackage "eap8021x" "osx-10.11.6" "0iw0qdib59hihyx2275rwq507bq2a06gaj8db4a8z1rkaj1frskh" {};
ICU = applePackage "ICU" "osx-10.10.5" "1qihlp42n5g4dl0sn0f9pc0bkxy1452dxzf0vr6y5gqpshlzy03p" {};
Expand Down Expand Up @@ -232,7 +241,6 @@ let
objc4 = applePackage "objc4" "osx-10.11.6" "00b7vbgxni8frrqyi69b4njjihlwydzjd9zj9x4z5dbx8jabkvrj" {};
ppp = applePackage "ppp" "osx-10.11.6" "1dql6r1v0vbcs04958nn2i6p31yfsxyy51jca63bm5mf0gxalk3f" {};
removefile = applePackage "removefile" "osx-10.11.6" "1b6r74ry3k01kypvlaclf33fha15pcm0kzx9zrymlg66wg0s0i3r" {};
Security = applePackage "Security" "osx-10.9.5" "1nv0dczf67dhk17hscx52izgdcyacgyy12ag0jh6nl5hmfzsn8yy" {};
xnu = applePackage "xnu" "osx-10.11.6" "0yhziq4dqqcbjpf6vyqn8xhwva2zb525gndkx8cp8alzwp76jnr9" {};
Librpcsvc = applePackage "Librpcsvc" "osx-10.11.6" "1zwfwcl9irxl1dlnf2b4v30vdybp0p0r6n6g1pd14zbdci1jcg2k" {};
adv_cmds = applePackage "adv_cmds/xcode.nix" "osx-10.11.6" "12gbv35i09aij9g90p6b3x2f3ramw43qcb2gjrg8lzkzmwvcyw9q" {};
Expand All @@ -243,6 +251,15 @@ let
shell_cmds = applePackage "shell_cmds" "osx-10.11.6" "0084k271v66h4jqp7q7rmjvv7w4mvhx3aq860qs8jbd30canm86n" {};
system_cmds = applePackage "system_cmds" "osx-10.11.6" "1h46j2c5v02pkv5d9fyv6cpgyg0lczvwicrx6r9s210cl03l77jl" {};

Security = applePackage "Security" "osx-10.9.5" "1nv0dczf67dhk17hscx52izgdcyacgyy12ag0jh6nl5hmfzsn8yy" {};
libsecurity_authorization = applePackage "Security/libsecurity_authorization.nix" "osx-10.9.5" "1nv0dczf67dhk17hscx52izgdcyacgyy12ag0jh6nl5hmfzsn8yy" {};
libsecurity_comcryption = applePackage "Security/libsecurity_comcryption.nix" "osx-10.9.5" "1nv0dczf67dhk17hscx52izgdcyacgyy12ag0jh6nl5hmfzsn8yy" {};
libsecurity_cryptkit = applePackage "Security/libsecurity_cryptkit.nix" "osx-10.9.5" "1nv0dczf67dhk17hscx52izgdcyacgyy12ag0jh6nl5hmfzsn8yy" {};
libsecurity_transform = applePackage "Security/libsecurity_transform.nix" "osx-10.9.5" "1nv0dczf67dhk17hscx52izgdcyacgyy12ag0jh6nl5hmfzsn8yy" {};

security_systemkeychain = applePackage "security_systemkeychain" "osx-10.10.5" "0xviskdgxsail15npi0billyiysvljlmg38mmhnr7qi4ymnnjr90" {};
libsecurity_smime = applePackage "libsecurity_smime" "osx-10.7.5" "05kf2yy995nsw0iwhm5p03jw6d0lvlpfpv2dfb1qpp1hd4kx6vay" {};

libsecurity_apple_csp = libsecPackage "libsecurity_apple_csp" "osx-10.7.5" "1ngyn1ik27n4x981px3kfd1z1n8zx7r5w812b6qfjpy5nw4h746w" {};
libsecurity_apple_cspdl = libsecPackage "libsecurity_apple_cspdl" "osx-10.7.5" "1svqa5fhw7p7njzf8bzg7zgc5776aqjhdbnlhpwmr5hmz5i0x8r7" {};
libsecurity_apple_file_dl = libsecPackage "libsecurity_apple_file_dl" "osx-10.7.5" "1dfqani3n135i3iqmafc1k9awmz6s0a78zifhk15rx5a8ps870bl" {};
Expand All @@ -253,15 +270,17 @@ let
libsecurity_cdsa_plugin = libsecPackage "libsecurity_cdsa_plugin" "osx-10.7.5" "0ifmx85rs51i7zjm015s8kc2dqyrlvbr39lw9xzxgd2ds33i4lfj" {};
libsecurity_cdsa_utilities = libsecPackage "libsecurity_cdsa_utilities" "osx-10.7.5" "1kzsl0prvfa8a0m3j3pcxq06aix1csgayd3lzx27iqg84c8mhzan" {};
libsecurity_cdsa_utils = libsecPackage "libsecurity_cdsa_utils" "osx-10.7.5" "0q55jizav6n0lkj7lcmcr2mjdhnbnnn525fa9ipwgvzbspihw0g6" {};
libsecurity_cms = applePackage "libsecurity_cms" "osx-10.7.5" "0gjy3hh8i7rwi3hraa35k7sd7ik7qrdg433cd3gddjmvhmbqpqfx" {};
libsecurity_codesigning = libsecPackage "libsecurity_codesigning" "osx-10.7.5" "0vf5nj2g383b4hknlp51qll5pm8z4qbf56dnc16n3wm8gj82iasy" {};
libsecurity_cssm = libsecPackage "libsecurity_cssm" "osx-10.7.5" "0l6ia533bhr8kqp2wa712bnzzzisif3kbn7h3bzzf4nps4wmwzn4" {};
libsecurity_cssm = applePackage "libsecurity_cssm" "osx-10.7.5" "0l6ia533bhr8kqp2wa712bnzzzisif3kbn7h3bzzf4nps4wmwzn4" {};
libsecurity_filedb = libsecPackage "libsecurity_filedb" "osx-10.7.5" "1r0ik95xapdl6l2lhd079vpq41jjgshz2hqb8490gpy5wyc49cxb" {};
libsecurity_keychain = libsecPackage "libsecurity_keychain" "osx-10.7.5" "15wf2slcgyns61kk7jndgm9h22vidyphh9x15x8viyprra9bkhja" {};
libsecurity_mds = libsecPackage "libsecurity_mds" "osx-10.7.5" "0vin5hnzvkx2rdzaaj2gxmx38amxlyh6j24a8gc22y09d74p5lzs" {};
libsecurity_ocspd = libsecPackage "libsecurity_ocspd" "osx-10.7.5" "1bxzpihc6w0ji4x8810a4lfkq83787yhjl60xm24bv1prhqcm73b" {};
libsecurity_pkcs12 = libsecPackage "libsecurity_pkcs12" "osx-10.7.5" "1yq8p2sp39q40fxshb256b7jn9lvmpymgpm8yz9kqrf980xddgsg" {};
libsecurity_sd_cspdl = libsecPackage "libsecurity_sd_cspdl" "osx-10.7.5" "10v76xycfnvz1n0zqfbwn3yh4w880lbssqhkn23iim3ihxgm5pbd" {};
libsecurity_utilities = libsecPackage "libsecurity_utilities" "osx-10.7.5" "0ayycfy9jm0n0c7ih9f3m69ynh8hs80v8yicq47aa1h9wclbxg8r" {};
libsecurity_ssl = applePackage "libsecurity_ssl" "osx-10.7.5" "1fd6l4aj9bmkn463dcsxyf4s90rxd0qs013gj2hhxs5si0b104pk" {};
libsecurityd = libsecPackage "libsecurityd" "osx-10.7.5" "1ywm2qj8l7rhaxy5biwxsyavd0d09d4bzchm03nlvwl313p2747x" {};
security_dotmac_tp = libsecPackage "security_dotmac_tp" "osx-10.9.5" "1l4fi9qhrghj0pkvywi8da22bh06c5bv3l40a621b5g258na50pl" {};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ appleDerivation rec {
# temporary install phase until xcodebuild has "install" support
installPhase = ''
mkdir -p $out/bin/
install developer_cmds-*/Build/Products/Release/* $out/bin/
install Products/Release/* $out/bin/

for n in 1; do
mkdir -p $out/share/man/man$n
Expand Down
45 changes: 45 additions & 0 deletions pkgs/os-specific/darwin/apple-source-releases/dtrace/xcode.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ appleDerivation, xcbuild, CoreSymbolication, xnu, bison, flex, darling, stdenv }:

appleDerivation {
buildInputs = [ xcbuild CoreSymbolication xnu bison flex darling ];
NIX_CFLAGS_COMPILE = "-DCTF_OLD_VERSIONS -DPRIVATE -DYYDEBUG=1 -I${xnu}/Library/Frameworks/System.framework/Headers";
NIX_LDFLAGS = "-L./Products/Release";
xcbuildFlags = "-target dtrace";

patchPhase = ''
substituteInPlace dtrace.xcodeproj/project.pbxproj --replace "/usr/sbin" ""
substituteInPlace libdtrace/dt_open.c \
--replace "/usr/bin/clang" "${stdenv.cc}/bin/cpp" \
--replace "/usr/bin/ld" "${stdenv.cc}/bin/ld" \
--replace "/usr/bin/dtrace" $out/lib/dtrace
'';

# hack to handle xcbuild's broken lex handling
preBuild = ''
cd libdtrace
yacc -d dt_grammar.y
flex -l -d dt_lex.l
cd ..

substituteInPlace dtrace.xcodeproj/project.pbxproj \
--replace '6EBC9800099BFBBF0001019C /* dt_grammar.y */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.yacc; name = dt_grammar.y; path = libdtrace/dt_grammar.y; sourceTree = "<group>"; };' '6EBC9800099BFBBF0001019C /* y.tab.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = y.tab.c; path = libdtrace/y.tab.c; sourceTree = "<group>"; };' \
--replace '6EBC9808099BFBBF0001019C /* dt_lex.l */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.lex; name = dt_lex.l; path = libdtrace/dt_lex.l; sourceTree = "<group>"; };' '6EBC9808099BFBBF0001019C /* lex.yy.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = lex.yy.c; path = libdtrace/lex.yy.c; sourceTree = "<group>"; };'
'';

# xcbuild doesn't support install
installPhase = ''
mkdir -p $out

cp -r Products/Release/usr $out
mv $out/usr/* $out
rmdir $out/usr

mkdir $out/lib
cp Products/Release/*.dylib $out/lib

mkdir $out/bin
cp Products/Release/dtrace $out/bin

mkdir -p $out/lib/dtrace
'';
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ appleDerivation rec {
# temporary install phase until xcodebuild has "install" support
installPhase = ''
mkdir -p $out/bin/
install file_cmds-*/Build/Products/Release/* $out/bin
install Products/Release/* $out/bin

for n in 1; do
mkdir -p $out/share/man/man$n
Expand Down
Loading