22 lines
455 B
Nix
22 lines
455 B
Nix
|
{ stdenv, appleDerivation }:
|
||
|
|
||
|
appleDerivation {
|
||
|
dontBuild = true;
|
||
|
|
||
|
postPatch = ''
|
||
|
substituteInPlace Makefile \
|
||
|
--replace '/bin/mkdir' 'mkdir' \
|
||
|
--replace '/usr/bin/install' 'install'
|
||
|
'';
|
||
|
|
||
|
installFlags = [ "EXPORT_DSTDIR=/include/architecture" ];
|
||
|
|
||
|
DSTROOT = "$(out)";
|
||
|
|
||
|
meta = with stdenv.lib; {
|
||
|
maintainers = with maintainers; [ copumpkin ];
|
||
|
platforms = platforms.darwin;
|
||
|
license = licenses.apsl20;
|
||
|
};
|
||
|
}
|