2021-05-28 09:39:13 +00:00
|
|
|
{ lib, appleDerivation', stdenvNoCC }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
appleDerivation' stdenvNoCC {
|
2020-04-24 23:36:52 +00:00
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace '/bin/mkdir' 'mkdir' \
|
|
|
|
--replace '/usr/bin/install' 'install'
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [ "EXPORT_DSTDIR=/include/architecture" ];
|
|
|
|
|
|
|
|
DSTROOT = "$(out)";
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
appleHeaders = ''
|
|
|
|
architecture/alignment.h
|
|
|
|
architecture/byte_order.h
|
|
|
|
architecture/i386/alignment.h
|
|
|
|
architecture/i386/asm_help.h
|
|
|
|
architecture/i386/byte_order.h
|
|
|
|
architecture/i386/cpu.h
|
|
|
|
architecture/i386/desc.h
|
|
|
|
architecture/i386/fpu.h
|
|
|
|
architecture/i386/frame.h
|
|
|
|
architecture/i386/io.h
|
|
|
|
architecture/i386/pio.h
|
|
|
|
architecture/i386/reg_help.h
|
|
|
|
architecture/i386/sel.h
|
|
|
|
architecture/i386/table.h
|
|
|
|
architecture/i386/tss.h
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ copumpkin ];
|
|
|
|
platforms = platforms.darwin;
|
|
|
|
license = licenses.apsl20;
|
|
|
|
};
|
|
|
|
}
|