mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
ebf963ac6c
- Rework spec files. - Add more tool specs. - Add ctags.
31 lines
606 B
Nix
31 lines
606 B
Nix
{ stdenv, sdk, writeText, platformName, xcbuild }:
|
|
|
|
let
|
|
|
|
Info = {
|
|
CFBundleIdentifier = platformName;
|
|
Type = "Platform";
|
|
};
|
|
|
|
Version = {
|
|
ProjectName = "OSXPlatformSupport";
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nixpkgs.platform";
|
|
buildInputs = [ xcbuild ];
|
|
buildCommand = ''
|
|
mkdir -p $out/
|
|
cd $out/
|
|
|
|
plutil -convert xml1 -o Info.plist ${writeText "Info.plist" (builtins.toJSON Info)}
|
|
plutil -convert xml1 -o version.plist ${writeText "version.plist" (builtins.toJSON Version)}
|
|
|
|
mkdir -p $out/Developer/SDKs/
|
|
cd $out/Developer/SDKs/
|
|
ln -s ${sdk}
|
|
'';
|
|
}
|