https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
13 lines
319 B
Nix
13 lines
319 B
Nix
{ appleDerivation', stdenvNoCC, ed, unifdef }:
|
|
|
|
appleDerivation' stdenvNoCC {
|
|
nativeBuildInputs = [ ed unifdef ];
|
|
|
|
installPhase = ''
|
|
export SRCROOT=$PWD
|
|
export DSTROOT=$out
|
|
export PUBLIC_HEADERS_FOLDER_PATH=include
|
|
export PRIVATE_HEADERS_FOLDER_PATH=include
|
|
bash xcodescripts/headers.sh
|
|
'';
|
|
}
|