1{
2 lib,
3 bundlerApp,
4 ruby,
5 beta ? false,
6}:
7
8bundlerApp {
9 inherit ruby;
10 pname = "cocoapods";
11 gemfile = if beta then ./Gemfile-beta else ./Gemfile;
12 lockfile = if beta then ./Gemfile-beta.lock else ./Gemfile.lock;
13 gemset = if beta then ./gemset-beta.nix else ./gemset.nix;
14 exes = [ "pod" ];
15
16 # toString prevents the update script from being copied into the nix store
17 passthru.updateScript = toString ./update;
18
19 meta = with lib; {
20 description = "Manages dependencies for your Xcode projects";
21 homepage = "https://github.com/CocoaPods/CocoaPods";
22 license = licenses.mit;
23 platforms = platforms.darwin;
24 maintainers = with maintainers; [
25 peterromfeldhk
26 ];
27 mainProgram = "pod";
28 };
29}