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

appleDerivation' stdenvNoCC {
  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;
  };
}