3
0
Fork 0
forked from mirrors/nixpkgs

ibtool: use xib2nib src

This commit is contained in:
Matthew Bauer 2017-04-11 03:22:32 -05:00
parent f1fdc98884
commit bb2eb5b0e8
No known key found for this signature in database
GPG key ID: E04D0AD9469141C3
5 changed files with 51 additions and 21 deletions

View file

@ -0,0 +1,22 @@
{ stdenv, callPackage, fetchFromGitHub, pugixml, boost }:
let
NSPlist = callPackage ./nsplist.nix { };
PlistCpp = callPackage ./plist-cpp.nix { inherit NSPlist; };
in
stdenv.mkDerivation {
name = "xib2nib-730e177";
src = fetchFromGitHub {
owner = "matthewbauer";
repo = "xib2nib";
rev = "636fe783e8625bbdd7bfeaf85470ba3eb7b90359";
sha256 = "08fhx8rww95h1fpl1cwhd82bcqv1k51k542v4kawjf8w814g5y1c";
};
buildInputs = [ PlistCpp pugixml boost ];
makeFlags = [ "PREFIX=$(out)" ];
}

View file

@ -0,0 +1,14 @@
{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation {
name = "nsplist-713decf";
src = fetchFromGitHub {
owner = "matthewbauer";
repo = "NSPlist";
rev = "713decf06c1ef6c39a707bc99eb45ac9925f2b8a";
sha256 = "0v4yfiwfd08hmh2ydgy6pnmlzjbd96k78dsla9pfd56ka89aw74r";
};
buildInputs = [ cmake ];
}

View file

@ -0,0 +1,14 @@
{ stdenv, fetchFromGitHub, cmake, boost, NSPlist, pugixml }:
stdenv.mkDerivation {
name = "plistcpp-11615d";
src = fetchFromGitHub {
owner = "matthewbauer";
repo = "PlistCpp";
rev = "11615deab3369356a182dabbf5bae30574967264";
sha256 = "10jn6bvm9vn6492zix2pd724v5h4lccmkqg3lxfw8r0qg3av0yzv";
};
buildInputs = [ cmake boost NSPlist pugixml ];
}

View file

@ -1,20 +0,0 @@
{ 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

@ -18408,5 +18408,5 @@ with pkgs;
messenger-for-desktop = callPackage ../applications/networking/instant-messengers/messenger-for-desktop {};
ibtool = callPackage ../os-specific/darwin/ibtool {};
ibtool = callPackage ../development/tools/ibtool {};
}