1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00

ibtool: add to toolchain

- init package
- add into xcbuild/toolchain.nix
This commit is contained in:
Matthew Bauer 2017-04-09 04:27:21 -05:00
parent 38fa991064
commit 34422f428d
No known key found for this signature in database
GPG key ID: E04D0AD9469141C3
3 changed files with 26 additions and 1 deletions

View file

@ -1,6 +1,7 @@
{stdenv, writeText, toolchainName, xcbuild, fetchurl
, llvm, cctools, gcc, bootstrap_cmds, binutils
, yacc, flex, m4, unifdef, gperf, indent, ctags, makeWrapper}:
, yacc, flex, m4, unifdef, gperf, indent, ctags, makeWrapper
, ibtool}:
let
@ -89,6 +90,8 @@ stdenv.mkDerivation {
ln -s ${cctools}/bin/pagestuff
ln -s ${cctools}/bin/ranlib
ln -s ${cctools}/bin/redo_prebinding
ln -s ${ibtool}/bin/ibtool
'' +
# No point including the entire gcc closure if we don't already have it
(if stdenv.cc.isClang then ''

View file

@ -0,0 +1,20 @@
{ stdenv }:
assert stdenv.isDarwin;
stdenv.mkDerivation {
name = "ibtool";
src = "/usr/bin/ibtool";
unpackPhase = "true";
dontBuild = true;
installPhase = ''
mkdir -p "$out"/bin
ln -s "$src" "$out"/bin
'';
meta = with stdenv.lib; {
platforms = platforms.darwin;
};
}

View file

@ -18407,4 +18407,6 @@ with pkgs;
ghc-standalone-archive = callPackage ../os-specific/darwin/ghc-standalone-archive { inherit (darwin) cctools; };
messenger-for-desktop = callPackage ../applications/networking/instant-messengers/messenger-for-desktop {};
ibtool = callPackage ../os-specific/darwin/ibtool {};
}