xcbuild: init at 49f8a592
This commit is contained in:
parent
ccd45f8854
commit
9617f61164
43
pkgs/development/tools/xcbuild/default.nix
Normal file
43
pkgs/development/tools/xcbuild/default.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{ stdenv, cmake, fetchFromGitHub, zlib, libxml2, libpng, CoreServices, CoreGraphics, ImageIO }:
|
||||||
|
|
||||||
|
let
|
||||||
|
googletest = fetchFromGitHub {
|
||||||
|
owner = "google";
|
||||||
|
repo = "googletest";
|
||||||
|
rev = "43359642a1c16ad3f4fc575c7edd0cb935810815";
|
||||||
|
sha256 = "0y4xaah62fjr3isaryc3vfz3mn9xflr00vchdimj8785milxga4q";
|
||||||
|
};
|
||||||
|
|
||||||
|
linenoise = fetchFromGitHub {
|
||||||
|
owner = "antirez";
|
||||||
|
repo = "linenoise";
|
||||||
|
rev = "c894b9e59f02203dbe4e2be657572cf88c4230c3";
|
||||||
|
sha256 = "0wasql7ph5g473zxhc2z47z3pjp42q0dsn4gpijwzbxawid71b4w";
|
||||||
|
};
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
name = "xcbuild-${stdenv.lib.substring 0 8 version}";
|
||||||
|
version = "49f8a5923f1381f87ac03ad4c1b138d1d2b74369";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "facebook";
|
||||||
|
repo = "xcbuild";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0l107xkh7dab2xc58dqyrrhpd1gp12cpzh0wrx0i9jbh0idbwnk0";
|
||||||
|
};
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
rmdir ThirdParty/*
|
||||||
|
cp -r --no-preserve=all ${googletest} ThirdParty/googletest
|
||||||
|
cp -r --no-preserve=all ${linenoise} ThirdParty/linenoise
|
||||||
|
'';
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
# TODO: instruct cmake not to put it in /usr, rather than cleaning up
|
||||||
|
postInstall = ''
|
||||||
|
mv $out/usr/* $out
|
||||||
|
rmdir $out/usr
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ cmake zlib libxml2 libpng CoreServices CoreGraphics ImageIO ];
|
||||||
|
}
|
@ -6425,6 +6425,8 @@ in
|
|||||||
|
|
||||||
xc3sprog = callPackage ../development/tools/misc/xc3sprog { };
|
xc3sprog = callPackage ../development/tools/misc/xc3sprog { };
|
||||||
|
|
||||||
|
xcbuild = callPackage ../development/tools/xcbuild { inherit (darwin.apple_sdk.frameworks) CoreServices CoreGraphics ImageIO; };
|
||||||
|
|
||||||
xmlindent = callPackage ../development/web/xmlindent {};
|
xmlindent = callPackage ../development/web/xmlindent {};
|
||||||
|
|
||||||
xpwn = callPackage ../development/mobile/xpwn {};
|
xpwn = callPackage ../development/mobile/xpwn {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user