summary refs log blame commit diff
path: root/pkgs/os-specific/darwin/apple-source-releases/CarbonHeaders/default.nix
blob: 5c6d54aeb9c3291b79ec3c8ae5ee026acc799d46 (plain) (tree)
1
2
3
4
5


                            

                   














                                                  
{ stdenv, 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 stdenv.lib; {
    maintainers = with maintainers; [ copumpkin ];
    platforms   = platforms.darwin;
    license     = licenses.apsl20;
  };
}