{ stdenv, appleDerivation, dyld, osx_private_sdk }:

appleDerivation {
  buildPhase = ":";

  # install headers only
  installPhase = ''
    mkdir -p $out/lib
    make install-data-am
  '';

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

{ stdenv, appleDerivation, dyld, osx_private_sdk }:

appleDerivation {
  phases = [ "unpackPhase" "installPhase" ];

  installPhase = ''
    mkdir -p $out/lib
    cp -R include $out/include
  '';

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

Revert "darwin.libunwind: fix install phase"
Revert "darwin.libunwind: fix install phase"

This reverts commit 76125722f0cd445cbce0fb183ae127aeb28796d0.
