summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/apple-source-releases/CarbonHeaders/default.nix
blob: b53c5985a21c236ba1ce8d6785c9ece1b7a4b858 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ lib, appleDerivation }:

appleDerivation {
  dontBuild = true;

  installPhase = ''
    mkdir -p $out/include
    cp MacTypes.h          $out/include
    cp ConditionalMacros.h $out/include

    substituteInPlace $out/include/MacTypes.h \
      --replace "CarbonCore/" ""
  '';

  meta = with lib; {
    maintainers = with maintainers; [ copumpkin ];
    platforms   = platforms.darwin;
    license     = licenses.apsl20;
  };
}