nixpkgs/pkgs/os-specific/darwin/apple-source-releases/architecture/default.nix
2021-01-25 18:31:47 +01:00

21 lines
445 B
Nix

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