about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/cocoapods/default.nix
blob: 54411fc0158639cf8bff13629749abffd6353476 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, bundlerApp, ruby
, beta ? false }:

bundlerApp {
  inherit ruby;
  pname = "cocoapods";
  gemfile = if beta then ./Gemfile-beta else ./Gemfile;
  lockfile = if beta then ./Gemfile-beta.lock else ./Gemfile.lock;
  gemset = if beta then ./gemset-beta.nix else ./gemset.nix;
  exes = [ "pod" ];

  # toString prevents the update script from being copied into the nix store
  passthru.updateScript = toString ./update;

  meta = with lib; {
    description     = "Manages dependencies for your Xcode projects";
    homepage        = "https://github.com/CocoaPods/CocoaPods";
    license         = licenses.mit;
    platforms       = platforms.darwin;
    maintainers     = with maintainers; [
      peterromfeldhk
      lilyball
    ];
    mainProgram = "pod";
  };
}