summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/otool/default.nix
blob: c998253d1480b3d57a60740b6cc7234e9d987e35 (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
27
28
29
30
31
32
33
34
35
{ stdenv }:

# this tool only exists on darwin
assert stdenv.isDarwin;

stdenv.mkDerivation {
  name = "otool";

  src = "/usr/bin/otool";

  unpackPhase = "true";
  configurePhase = "true";
  buildPhase = "true";

  installPhase = ''
    mkdir -p "$out/bin"
    ln -s $src "$out/bin"
  '';

  meta = with stdenv.lib; {
    description = "Object file displaying tool";
    homepage    = https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/otool.1.html;
    license     = licenses.unfree;
    maintainers = with maintainers; [ lovek323 ];
    platforms   = platforms.darwin;

    longDescription = ''
      The otool command displays specified parts of object files or libraries.
      If the, -m option is not used, the file arguments may be of the form
      libx.a(foo.o), to request information about only that object file and not
      the entire library.
    '';
  };
}