0534ceac81
Not every package that needs xcbuild will want to use its build phase. I have moved the xcbuild setup hook to the new attribute xcbuildHook. This means that dontUseXcbuild is no longer needed. If you just need to call xcbuild on its own you can just refer to xcbuild.
17 lines
533 B
Nix
17 lines
533 B
Nix
{xcbuildHook, appleDerivation, apple_sdk, ncurses, libutil-new, lib}:
|
|
|
|
appleDerivation {
|
|
nativeBuildInputs = [ xcbuildHook ];
|
|
buildInputs = [ apple_sdk.frameworks.IOKit ncurses libutil-new ];
|
|
NIX_LDFLAGS = "-lutil";
|
|
installPhase = ''
|
|
install -D Products/Release/libtop.a $out/lib/libtop.a
|
|
install -D Products/Release/libtop.h $out/include/libtop.h
|
|
install -D Products/Release/top $out/bin/top
|
|
'';
|
|
meta = {
|
|
platforms = lib.platforms.darwin;
|
|
maintainers = with lib.maintainers; [ matthewbauer ];
|
|
};
|
|
}
|